[-] 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
This commit is contained in:
lLefevre
2011-12-30 10:15:20 +00:00
parent 78aabf68d8
commit 981880e27e
+13 -3
View File
@@ -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.'), "<b>".$unidentified->name[$this->context->language->id]."</b>");
$guest_group_information = sprintf($this->l('%s - Customer who placed an order with the Guest Checkout.'), "<b>".$guest->name[$this->context->language->id]."</b>");
$default_group_information = sprintf($this->l('%s - All persons who created an account on this site.'), "<b>".$default->name[$this->context->language->id]."</b>");
$unidentified_group_information = sprintf(
$this->l('%s - All persons without a customer account or unauthenticated.'),
'<b>'.$unidentified->name[$this->context->language->id].'</b>'
);
$guest_group_information = sprintf(
$this->l('%s - Customer who placed an order with the Guest Checkout.'),
'<b>'.$guest->name[$this->context->language->id].'</b>'
);
$default_group_information = sprintf(
$this->l('%s - All persons who created an account on this site.'),
'<b>'.$default->name[$this->context->language->id].'</b>'
);
$this->displayInformation($this->l('You have now three default customer groups.'));
$this->displayInformation($unidentified_group_information);