// HelperList: add possibility to create custom action for each row

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9368 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dSevere
2011-10-14 14:19:45 +00:00
parent d4dfab892f
commit 5bd7821915
8 changed files with 310 additions and 114 deletions
@@ -38,13 +38,14 @@ class AdminAddressesControllerCore extends AdminController
$this->table = 'address';
$this->className = 'Address';
$this->lang = false;
$this->edit = true;
$this->delete = true;
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->requiredDatabase = true;
$this->addressType = 'customer';
$this->context = Context::getContext();
$this->addRowAction('edit');
$this->addRowAction('delete');
if (!Tools::getValue('realedit'))
$this->deleted = true;
$this->_select = 'cl.`name` as country';