diff --git a/admin-dev/themes/default/template/helpers/list/list_footer.tpl b/admin-dev/themes/default/template/helpers/list/list_footer.tpl index 25cb28f60..b77212638 100644 --- a/admin-dev/themes/default/template/helpers/list/list_footer.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_footer.tpl @@ -28,7 +28,7 @@ {if $bulk_actions}
{foreach $bulk_actions as $key => $params} - + {/foreach}
{/if} diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index dbdf811a1..d689c28d8 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -2413,6 +2413,7 @@ class AdminControllerCore extends Controller if (is_array($this->boxes) && !empty($this->boxes)) { $object = new $this->className(); + if (isset($object->noZeroObject)) { $objects_count = count(call_user_func(array($this->className, $object->noZeroObject))); diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index 99f687ea1..de4550d8a 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -660,4 +660,28 @@ class AdminAttributesGroupsControllerCore extends AdminController } } + /** + * Overrides parent to delete items from sublist + * + * @param $token + * @return mixed + */ + public function processBulkDelete($token) + { + // If we are deleting attributes instead of attribute_groups + if (Tools::getIsset('attributeBox')) + { + $this->className = 'Attribute'; + $this->table = 'attribute'; + $this->boxes = Tools::getValue($this->table.'Box'); + } + + $result = parent::processBulkDelete($token); + // Restore vars + $this->className = 'AttributeGroup'; + $this->table = 'attribute_group'; + + return $result; + } + }