// Remove unnecessary function

This commit is contained in:
Jerome Nadaud
2013-10-01 17:56:17 +02:00
parent 68831ffbe9
commit f2849bdb70
@@ -148,83 +148,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
return parent::renderList();
}
}
/**
* method call when ajax request is made with the details row action
* @see AdminController::postProcess()
*/
/*public function ajaxProcessDetails()
{
if (($id = Tools::getValue('id')))
{
$this->table = 'attribute';
$this->className = 'Attribute';
$this->identifier = 'id_attribute';
$this->lang = true;
if (!Validate::isLoadedObject($obj = new AttributeGroup((int)$id)))
$this->errors[] = Tools::displayError('An error occurred while updating the status for an object.').' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
$this->fields_list = array(
'id_attribute' => array(
'title' => $this->l('ID'),
'align' => 'center'
),
'name' => array(
'title' => $this->l('Value'),
'width' => 'auto',
'filter_key' => 'b!name'
)
);
if ($obj->group_type == 'color')
$this->fields_list['color'] = array(
'title' => $this->l('Color'),
'filter_key' => 'b!color'
);
$this->fields_list['position'] = array(
'title' => $this->l('Position'),
'filter_key' => 'a!position',
'position' => 'position'
);
$this->addRowAction('edit');
$this->addRowAction('delete');
// override attributes
$this->display = 'list';
$this->tpl_folder = 'attributes/';
$this->_where = 'AND a.`id_attribute_group` = '.(int)$id;
$this->_orderBy = 'position';
// get list and force no limit clause in the request
$this->getList($this->context->language->id, null, null, 0, false);
// Render list
$helper = new HelperList();
$helper->actions = $this->actions;
$helper->override_folder = $this->tpl_folder;
$helper->no_link = true;
$helper->shopLinkType = '';
$helper->identifier = $this->identifier;
$helper->toolbar_scroll = false;
$helper->orderBy = 'position';
$helper->orderWay = 'ASC';
$helper->currentIndex = self::$currentIndex;
$helper->token = $this->token;
$helper->table = $this->table;
$helper->simple_header = true;
$helper->show_toolbar = false;
$helper->bulk_actions = $this->bulk_actions;
$helper->position_identifier = 'id_attribute';
$content = $helper->generateList($this->_list, $this->fields_list);
die (Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content)));
}
}*/
/**
* AdminController::renderForm() override
* @see AdminController::renderForm()