From 981880e27ea9d505038fa6c4cc46bffa363e4ce7 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Fri, 30 Dec 2011 10:15:20 +0000 Subject: [PATCH] [-] BO: adding bulk action of type delete for AdminGroupsController + normalize git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11924 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminGroupsController.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/controllers/admin/AdminGroupsController.php b/controllers/admin/AdminGroupsController.php index 207e3c648..0d9cab6f2 100644 --- a/controllers/admin/AdminGroupsController.php +++ b/controllers/admin/AdminGroupsController.php @@ -35,6 +35,7 @@ class AdminGroupsControllerCore extends AdminController $this->addRowAction('edit'); $this->addRowAction('view'); $this->addRowAction('delete'); + $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->_select = ' (SELECT COUNT(jcg.`id_customer`) @@ -472,9 +473,18 @@ class AdminGroupsControllerCore extends AdminController $guest = new Group(Configuration::get('PS_GUEST_GROUP')); $default = new Group(Configuration::get('PS_CUSTOMER_GROUP')); - $unidentified_group_information = sprintf($this->l('%s - All persons without a customer account or unauthenticated.'), "".$unidentified->name[$this->context->language->id].""); - $guest_group_information = sprintf($this->l('%s - Customer who placed an order with the Guest Checkout.'), "".$guest->name[$this->context->language->id].""); - $default_group_information = sprintf($this->l('%s - All persons who created an account on this site.'), "".$default->name[$this->context->language->id].""); + $unidentified_group_information = sprintf( + $this->l('%s - All persons without a customer account or unauthenticated.'), + ''.$unidentified->name[$this->context->language->id].'' + ); + $guest_group_information = sprintf( + $this->l('%s - Customer who placed an order with the Guest Checkout.'), + ''.$guest->name[$this->context->language->id].'' + ); + $default_group_information = sprintf( + $this->l('%s - All persons who created an account on this site.'), + ''.$default->name[$this->context->language->id].'' + ); $this->displayInformation($this->l('You have now three default customer groups.')); $this->displayInformation($unidentified_group_information);