diff --git a/classes/FeatureValue.php b/classes/FeatureValue.php index 54cb38726..8473af1f0 100644 --- a/classes/FeatureValue.php +++ b/classes/FeatureValue.php @@ -49,7 +49,7 @@ class FeatureValueCore extends ObjectModel protected $table = 'feature_value'; protected $identifier = 'id_feature_value'; - protected $webserviceParameters = array( + protected $webserviceParameters = array( 'objectsNodeName' => 'product_feature_values', 'objectNodeName' => 'product_feature_value', 'fields' => array( diff --git a/controllers/admin/AdminFeaturesController.php b/controllers/admin/AdminFeaturesController.php index 3ec416cc0..db390f6f6 100644 --- a/controllers/admin/AdminFeaturesController.php +++ b/controllers/admin/AdminFeaturesController.php @@ -31,7 +31,6 @@ class AdminFeaturesControllerCore extends AdminController $this->table = 'feature'; $this->className = 'Feature'; $this->lang = true; - $this->_defaultOrderBy = 'position'; $this->fieldsDisplay = array( 'id_feature' => array( @@ -72,6 +71,7 @@ class AdminFeaturesControllerCore extends AdminController $this->addRowAction('edit'); $this->addRowAction('delete'); $this->addRowAction('details'); + $this->_defaultOrderBy = 'position'; // Added specific button in toolbar $this->toolbar_btn['newAttributes'] = array( @@ -108,7 +108,7 @@ class AdminFeaturesControllerCore extends AdminController $this->addRowAction('edit'); $this->addRowAction('delete'); - if (!Validate::isLoadedObject($obj = new FeatureValue((int)$id))) + 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( @@ -125,7 +125,7 @@ class AdminFeaturesControllerCore extends AdminController $this->_where = sprintf('AND `id_feature` = %d', (int)$id); // get list and force no limit clause in the request - $this->getList($this->context->language->id, null); + $this->getList($this->context->language->id); // Render list $helper = new HelperList();