// fix bug link "details" in AdminFeaturesController

This commit is contained in:
lLefevre committed 2011-11-30 16:52:23 +00:00
1 parent 2c1d3a0a28
commit e836446a66
1 file changed
+3 -3
@@ -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();