diff --git a/controllers/admin/AdminCountriesController.php b/controllers/admin/AdminCountriesController.php index cb22fb25e..b04dce4ca 100644 --- a/controllers/admin/AdminCountriesController.php +++ b/controllers/admin/AdminCountriesController.php @@ -67,7 +67,7 @@ class AdminCountriesControllerCore extends AdminController ) ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_country' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminCurrenciesController.php b/controllers/admin/AdminCurrenciesController.php index ec1ad8a9b..894439e05 100644 --- a/controllers/admin/AdminCurrenciesController.php +++ b/controllers/admin/AdminCurrenciesController.php @@ -41,7 +41,7 @@ class AdminCurrenciesControllerCore extends AdminController { parent::init(); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_currency' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Currency')), 'iso_code' => array('title' => $this->l('ISO code'), 'align' => 'center', 'width' => 80), diff --git a/controllers/admin/AdminCustomerThreadsController.php b/controllers/admin/AdminCustomerThreadsController.php index 9a8f34d67..b8ed40e6b 100644 --- a/controllers/admin/AdminCustomerThreadsController.php +++ b/controllers/admin/AdminCustomerThreadsController.php @@ -58,7 +58,7 @@ class AdminCustomerThreadsControllerCore extends AdminController 'pending2' => 'status_orange.png' ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_customer_thread' => array( 'title' => $this->l('ID'), 'width' => 25, diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index 33a3eebc6..80411bd2b 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -62,7 +62,7 @@ class AdminCustomersControllerCore extends AdminController $genders[$gender->id] = $gender->name; } - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_customer' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminEmployeesController.php b/controllers/admin/AdminEmployeesController.php index cf0731a01..3a81249b2 100644 --- a/controllers/admin/AdminEmployeesController.php +++ b/controllers/admin/AdminEmployeesController.php @@ -71,7 +71,7 @@ class AdminEmployeesControllerCore extends AdminController foreach ($profiles as $profile) $this->profiles_array[$profile['name']] = $profile['name']; - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_employee' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'lastname' => array('title' => $this->l('Last name'), 'width' => 'auto'), 'firstname' => array('title' => $this->l('First name'), 'width' => 130), diff --git a/controllers/admin/AdminFeaturesController.php b/controllers/admin/AdminFeaturesController.php index 35d568b6f..12d2f5f3e 100644 --- a/controllers/admin/AdminFeaturesController.php +++ b/controllers/admin/AdminFeaturesController.php @@ -34,7 +34,7 @@ class AdminFeaturesControllerCore extends AdminController $this->className = 'Feature'; $this->lang = true; - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_feature' => array( 'title' => $this->l('ID'), 'width' => 25 @@ -130,7 +130,7 @@ class AdminFeaturesControllerCore extends AdminController if (!Validate::isLoadedObject($obj = new Feature((int)$id))) $this->errors[] = Tools::displayError('An error occurred while updating status for object.').' '.$this->table.' '.Tools::displayError('(cannot load object)'); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_feature_value' => array( 'title' => $this->l('ID'), 'width' => 25 @@ -160,7 +160,7 @@ class AdminFeaturesControllerCore extends AdminController $helper->simple_header = true; $helper->show_toolbar = false; $helper->bulk_actions = $this->bulk_actions; - $content = $helper->generateList($this->_list, $this->fieldsDisplay); + $content = $helper->generateList($this->_list, $this->fields_list); echo Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content)); exit; diff --git a/controllers/admin/AdminGendersController.php b/controllers/admin/AdminGendersController.php index 7aa90493d..d999f8e67 100644 --- a/controllers/admin/AdminGendersController.php +++ b/controllers/admin/AdminGendersController.php @@ -52,7 +52,7 @@ class AdminGendersControllerCore extends AdminController 'dir' => 'genders' ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_gender' => array( 'title' => $this->l('ID'), 'align' => 'center', @@ -172,7 +172,7 @@ class AdminGendersControllerCore extends AdminController public function displayGenderType($value, $tr) { - return $this->fieldsDisplay['type']['list'][$value]; + return $this->fields_list['type']['list'][$value]; } protected function postImage($id) diff --git a/controllers/admin/AdminGroupShopController.php b/controllers/admin/AdminGroupShopController.php index e72a04020..b57d89169 100644 --- a/controllers/admin/AdminGroupShopController.php +++ b/controllers/admin/AdminGroupShopController.php @@ -45,7 +45,7 @@ class AdminGroupShopControllerCore extends AdminController if (!Tools::getValue('realedit')) $this->deleted = false; - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_group_shop' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminGroupsController.php b/controllers/admin/AdminGroupsController.php index 654149930..aeaca45a0 100644 --- a/controllers/admin/AdminGroupsController.php +++ b/controllers/admin/AdminGroupsController.php @@ -50,7 +50,7 @@ class AdminGroupsControllerCore extends AdminController Configuration::get('PS_CUSTOMER_GROUP') ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_group' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminImagesController.php b/controllers/admin/AdminImagesController.php index 848652fa0..928b4b4f8 100644 --- a/controllers/admin/AdminImagesController.php +++ b/controllers/admin/AdminImagesController.php @@ -39,7 +39,7 @@ class AdminImagesControllerCore extends AdminController $this->addRowAction('edit'); $this->addRowAction('delete'); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_image_type' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Name'), 'size' => 16), 'width' => array('title' => $this->l('Width'), 'align' => 'right', 'suffix' => ' px', 'width' => 50, 'size' => 5), diff --git a/controllers/admin/AdminLanguagesController.php b/controllers/admin/AdminLanguagesController.php index 9333e112e..1cbb6c2d6 100644 --- a/controllers/admin/AdminLanguagesController.php +++ b/controllers/admin/AdminLanguagesController.php @@ -50,7 +50,7 @@ class AdminLanguagesControllerCore extends AdminController ) ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_lang' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminLogsController.php b/controllers/admin/AdminLogsController.php index 5a6a22e14..e02911b8b 100644 --- a/controllers/admin/AdminLogsController.php +++ b/controllers/admin/AdminLogsController.php @@ -37,7 +37,7 @@ class AdminLogsControllerCore extends AdminController $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_log' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'severity' => array('title' => $this->l('Severity (1-4)'), 'align' => 'center', 'width' => 50), 'message' => array('title' => $this->l('Message')), diff --git a/controllers/admin/AdminManufacturersController.php b/controllers/admin/AdminManufacturersController.php index 374bb539f..7c9230e2a 100644 --- a/controllers/admin/AdminManufacturersController.php +++ b/controllers/admin/AdminManufacturersController.php @@ -48,7 +48,7 @@ class AdminManufacturersControllerCore extends AdminController 'dir' => 'm' ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_manufacturer' => array( 'title' => $this->l('ID'), 'width' => 25 @@ -123,7 +123,7 @@ class AdminManufacturersControllerCore extends AdminController $this->toolbar_title = $this->l('Addresses'); // reset actions and query vars $this->actions = array(); - unset($this->fieldsDisplay, $this->_select, $this->_join, $this->_group, $this->_filterHaving, $this->_filter); + unset($this->fields_list, $this->_select, $this->_join, $this->_group, $this->_filterHaving, $this->_filter); $this->table = 'address'; $this->identifier = 'id_address'; @@ -148,7 +148,7 @@ class AdminManufacturersControllerCore extends AdminController foreach ($countries as $country) $this->countries_array[$country['id_country']] = $country['name']; - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_address' => array( 'title' => $this->l('ID'), 'width' => 25 diff --git a/controllers/admin/AdminMetaController.php b/controllers/admin/AdminMetaController.php index a5bf41937..e0e157615 100644 --- a/controllers/admin/AdminMetaController.php +++ b/controllers/admin/AdminMetaController.php @@ -45,7 +45,7 @@ class AdminMetaControllerCore extends AdminController $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_meta' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'page' => array('title' => $this->l('Page'), 'width' => 120), 'title' => array('title' => $this->l('Title'), 'width' => 120), diff --git a/controllers/admin/AdminOrderMessageController.php b/controllers/admin/AdminOrderMessageController.php index 1221c55af..7ba536c08 100644 --- a/controllers/admin/AdminOrderMessageController.php +++ b/controllers/admin/AdminOrderMessageController.php @@ -44,7 +44,7 @@ class AdminOrderMessageControllerCore extends AdminController $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_order_message' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 8417b2233..603792454 100755 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -62,7 +62,7 @@ class AdminOrdersControllerCore extends AdminController foreach ($statuses as $status) $statuses_array[$status['id_order_state']] = $status['name']; - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_order' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminOutstandingController.php b/controllers/admin/AdminOutstandingController.php index 56aeced9a..ab22b1406 100644 --- a/controllers/admin/AdminOutstandingController.php +++ b/controllers/admin/AdminOutstandingController.php @@ -50,7 +50,7 @@ class AdminOutstandingControllerCore extends AdminController foreach (Risk::getRisks() as $risk) $risks[$risk->id] = $risk->name; - $this->fieldsDisplay = array( + $this->fields_list = array( 'number' => array( 'title' => $this->l('Invoice Number'), 'align' => 'center', diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index b5a93cd87..e750a0799 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -84,7 +84,7 @@ class AdminProductsControllerCore extends AdminController $this->max_file_size = (int)(Configuration::get('PS_LIMIT_UPLOAD_FILE_VALUE') * 1000000); $this->max_image_size = (int)Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE'); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_product' => array( 'title' => $this->l('ID'), 'align' => 'center', @@ -1976,7 +1976,7 @@ class AdminProductsControllerCore extends AdminController $this->addRowAction('delete'); if (!Tools::getValue('id_category')) - unset($this->fieldsDisplay['position']); + unset($this->fields_list['position']); return parent::renderList(); } @@ -3330,7 +3330,7 @@ class AdminProductsControllerCore extends AdminController $color_by_default = '#BDE5F8'; - $this->fieldsDisplay = array( + $this->fields_list = array( 'attributes' => array('title' => $this->l('Attributes'), 'align' => 'left'), 'price' => array('title' => $this->l('Impact'), 'type' => 'price', 'align' => 'left', 'width' => 70), 'weight' => array('title' => $this->l('Weight'), 'align' => 'left', 'width' => 70), @@ -3343,10 +3343,10 @@ class AdminProductsControllerCore extends AdminController if ($id_product_download && !empty($product_download->display_filename)) { - $this->fieldsDisplay['Filename'] = array('title' => $this->l('Filename'), 'align' => 'center', 'width' => 70); - $this->fieldsDisplay['nb_downloadable'] = array('title' => $this->l('Number of downloads'), 'align' => 'center', 'width' => 70); - $this->fieldsDisplay['date_expiration'] = array('title' => $this->l('Number of days'), 'align' => 'center', 'width' => 70); - $this->fieldsDisplay['is_shareable'] = array('title' => $this->l('Share'), 'align' => 'center', 'width' => 70); + $this->fields_list['Filename'] = array('title' => $this->l('Filename'), 'align' => 'center', 'width' => 70); + $this->fields_list['nb_downloadable'] = array('title' => $this->l('Number of downloads'), 'align' => 'center', 'width' => 70); + $this->fields_list['date_expiration'] = array('title' => $this->l('Number of days'), 'align' => 'center', 'width' => 70); + $this->fields_list['is_shareable'] = array('title' => $this->l('Share'), 'align' => 'center', 'width' => 70); } if ($product->id) @@ -3461,7 +3461,7 @@ class AdminProductsControllerCore extends AdminController $helper->colorOnBackground = true; $helper->override_folder = $this->tpl_folder.'combination/'; - return $helper->generateList($comb_array, $this->fieldsDisplay); + return $helper->generateList($comb_array, $this->fields_list); } public function initFormQuantities($obj, $languages) diff --git a/controllers/admin/AdminProfilesController.php b/controllers/admin/AdminProfilesController.php index 16222fb73..d41055feb 100644 --- a/controllers/admin/AdminProfilesController.php +++ b/controllers/admin/AdminProfilesController.php @@ -42,7 +42,7 @@ class AdminProfilesControllerCore extends AdminController 'confirm' => $this->l('Delete selected items?')) ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_profile' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminQuickAccessesController.php b/controllers/admin/AdminQuickAccessesController.php index 137d5005d..c348d270d 100644 --- a/controllers/admin/AdminQuickAccessesController.php +++ b/controllers/admin/AdminQuickAccessesController.php @@ -44,7 +44,7 @@ class AdminQuickAccessesControllerCore extends AdminController $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_quick_access' => array( 'title' => $this->l('ID'), 'align' => 'center', diff --git a/controllers/admin/AdminRangePriceController.php b/controllers/admin/AdminRangePriceController.php index aa709eeeb..ba46030e7 100644 --- a/controllers/admin/AdminRangePriceController.php +++ b/controllers/admin/AdminRangePriceController.php @@ -37,7 +37,7 @@ class AdminRangePriceControllerCore extends AdminController $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_range_price' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'carrier_name' => array('title' => $this->l('Carrier'), 'align' => 'left', 'width' => 'auto', 'filter_key' => 'ca!name'), 'delimiter1' => array('title' => $this->l('From'), 'width' => 86, 'type' => 'price', 'align' => 'right'), diff --git a/controllers/admin/AdminRangeWeightController.php b/controllers/admin/AdminRangeWeightController.php index f09c404e4..894bfba8d 100644 --- a/controllers/admin/AdminRangeWeightController.php +++ b/controllers/admin/AdminRangeWeightController.php @@ -37,7 +37,7 @@ class AdminRangeWeightControllerCore extends AdminController $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_range_weight' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'carrier_name' => array('title' => $this->l('Carrier'), 'align' => 'left', 'width' => 'auto', 'filter_key' => 'ca!name'), 'delimiter1' => array('title' => $this->l('From'), 'width' => 86, 'float' => true, 'suffix' => Configuration::get('PS_WEIGHT_UNIT'), 'align' => 'right'), diff --git a/controllers/admin/AdminReferrersController.php b/controllers/admin/AdminReferrersController.php index e231ccd1b..9cf5eea23 100644 --- a/controllers/admin/AdminReferrersController.php +++ b/controllers/admin/AdminReferrersController.php @@ -59,7 +59,7 @@ class AdminReferrersControllerCore extends AdminController { $this->table = 'referrer'; $this->className = 'Referrer'; - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_referrer' => array( 'title' => $this->l('ID'), 'width' => 25, diff --git a/controllers/admin/AdminRequestSqlController.php b/controllers/admin/AdminRequestSqlController.php index 6810c4e70..6a497f5ad 100644 --- a/controllers/admin/AdminRequestSqlController.php +++ b/controllers/admin/AdminRequestSqlController.php @@ -45,7 +45,7 @@ class AdminRequestSqlControllerCore extends AdminController $this->context = Context::getContext(); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_request_sql' => array('title' => $this->l('ID'), 'width' => 25), 'name' => array('title' => $this->l('Name'), 'width' => 300), 'sql' => array('title' => $this->l('Request'), 'width' => 500) diff --git a/controllers/admin/AdminReturnController.php b/controllers/admin/AdminReturnController.php index 7cbe21bf0..225dd5a39 100644 --- a/controllers/admin/AdminReturnController.php +++ b/controllers/admin/AdminReturnController.php @@ -36,7 +36,7 @@ class AdminReturnControllerCore extends AdminController $this->_select = 'orsl.`name`'; $this->_join = 'LEFT JOIN '._DB_PREFIX_.'order_return_state_lang orsl ON (orsl.`id_order_return_state` = a.`state` AND orsl.`id_lang` = '.(int)$this->context->language->id.')'; - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_order_return' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'id_order' => array('title' => $this->l('Order ID'), 'width' => 100, 'align' => 'center'), 'name' => array('title' => $this->l('Status'), 'width' => 'auto', 'align' => 'left'), diff --git a/controllers/admin/AdminScenesController.php b/controllers/admin/AdminScenesController.php index d70d350fc..cb86c360a 100644 --- a/controllers/admin/AdminScenesController.php +++ b/controllers/admin/AdminScenesController.php @@ -41,7 +41,7 @@ class AdminScenesControllerCore extends AdminController array('name' => 'thumb', 'dir' => 'scenes/thumbs') ); - $this->fieldsDisplay = array( + $this->fields_list = array( 'id_scene' => array( 'title' => $this->l('ID'), 'align' => 'center',