// fix bug link "details" in AdminFeaturesController
This commit is contained in:
@@ -49,7 +49,7 @@ class FeatureValueCore extends ObjectModel
|
|||||||
protected $table = 'feature_value';
|
protected $table = 'feature_value';
|
||||||
protected $identifier = 'id_feature_value';
|
protected $identifier = 'id_feature_value';
|
||||||
|
|
||||||
protected $webserviceParameters = array(
|
protected $webserviceParameters = array(
|
||||||
'objectsNodeName' => 'product_feature_values',
|
'objectsNodeName' => 'product_feature_values',
|
||||||
'objectNodeName' => 'product_feature_value',
|
'objectNodeName' => 'product_feature_value',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ class AdminFeaturesControllerCore extends AdminController
|
|||||||
$this->table = 'feature';
|
$this->table = 'feature';
|
||||||
$this->className = 'Feature';
|
$this->className = 'Feature';
|
||||||
$this->lang = true;
|
$this->lang = true;
|
||||||
$this->_defaultOrderBy = 'position';
|
|
||||||
|
|
||||||
$this->fieldsDisplay = array(
|
$this->fieldsDisplay = array(
|
||||||
'id_feature' => array(
|
'id_feature' => array(
|
||||||
@@ -72,6 +71,7 @@ class AdminFeaturesControllerCore extends AdminController
|
|||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
$this->addRowAction('delete');
|
$this->addRowAction('delete');
|
||||||
$this->addRowAction('details');
|
$this->addRowAction('details');
|
||||||
|
$this->_defaultOrderBy = 'position';
|
||||||
|
|
||||||
// Added specific button in toolbar
|
// Added specific button in toolbar
|
||||||
$this->toolbar_btn['newAttributes'] = array(
|
$this->toolbar_btn['newAttributes'] = array(
|
||||||
@@ -108,7 +108,7 @@ class AdminFeaturesControllerCore extends AdminController
|
|||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
$this->addRowAction('delete');
|
$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.').' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
$this->_errors[] = Tools::displayError('An error occurred while updating status for object.').' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
||||||
|
|
||||||
$this->fieldsDisplay = array(
|
$this->fieldsDisplay = array(
|
||||||
@@ -125,7 +125,7 @@ class AdminFeaturesControllerCore extends AdminController
|
|||||||
$this->_where = sprintf('AND `id_feature` = %d', (int)$id);
|
$this->_where = sprintf('AND `id_feature` = %d', (int)$id);
|
||||||
|
|
||||||
// get list and force no limit clause in the request
|
// 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
|
// Render list
|
||||||
$helper = new HelperList();
|
$helper = new HelperList();
|
||||||
|
|||||||
Reference in New Issue
Block a user