From f2849bdb70d1b19636a1e456c3e5fe9957d055dd Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Tue, 1 Oct 2013 17:56:17 +0200 Subject: [PATCH] // Remove unnecessary function --- .../admin/AdminAttributesGroupsController.php | 78 +------------------ 1 file changed, 1 insertion(+), 77 deletions(-) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index 7b1241f80..2269a3aa5 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -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.').' '.$this->table.' '.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()