// Improve details action in BO ...

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12539 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-18 16:37:00 +00:00
parent eaf4c98ae6
commit 2600c7c0a9
7 changed files with 126 additions and 246 deletions
@@ -79,10 +79,9 @@ class AdminAttributesGroupsControllerCore extends AdminController
* method call when ajax request is made with the details row action
* @see AdminController::postProcess()
*/
public function ajaxProcess()
public function ajaxProcessDetails()
{
// test if an id is submit
if (($id = Tools::getValue('id')) && Tools::isSubmit('id'))
if (($id = Tools::getValue('id')))
{
$this->table = 'attribute';
$this->className = 'Attribute';
@@ -150,9 +149,9 @@ class AdminAttributesGroupsControllerCore extends AdminController
$helper->bulk_actions = $this->bulk_actions;
$content = $helper->generateList($this->_list, $this->fieldsDisplay);
$this->content = Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content));
echo Tools::jsonEncode(array('use_parent_structure' => false, 'data' => $content));
exit;
}
}
/**