// Update stock movements interface with new controllers + debug and optimisations

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9604 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dSevere
2011-10-24 15:28:58 +00:00
parent 4afc9fbd23
commit 7e8ba0ffff
9 changed files with 378 additions and 220 deletions
+2
View File
@@ -595,6 +595,7 @@ class AdminControllerCore extends Controller
if ($this->filter)
{
$_POST = array_merge($this->context->cookie->getFamily($this->table.'Filter_'), (isset($_POST) ? $_POST : array()));
foreach ($_POST as $key => $value)
{
/* Extracting filters from $_POST on key filter_ */
@@ -604,6 +605,7 @@ class AdminControllerCore extends Controller
/* Table alias could be specified using a ! eg. alias!field */
$tmp_tab = explode('!', $key);
$filter = count($tmp_tab) > 1 ? $tmp_tab[1] : $tmp_tab[0];
if ($field = $this->filterToField($key, $filter))
{
$type = (array_key_exists('filter_type', $field) ? $field['filter_type'] : (array_key_exists('type', $field) ? $field['type'] : false));
+1 -1
View File
@@ -99,7 +99,7 @@ class HelperListCore extends Helper
'id_carrier' => 'id_carrier'
);
// @var boolean ask for simple header : no filters, no paginations and no sorting
/** @var boolean ask for simple header : no filters, no paginations and no sorting */
public $simple_header = false;
/**
+1 -1
View File
@@ -63,7 +63,7 @@ class WarehouseCore extends ObjectModel
protected $fieldsValidate = array(
'id_address' => 'isUnsignedId',
'reference' => 'isString',
'name' => 'isString',
'name' => 'isName',
'id_employee' => 'isUnsignedId',
'management_type' => 'isStockManagement',
'id_currency' => 'isUnsignedId'