[-] BO : fix #PSTEST-134

This commit is contained in:
lLefevre
2012-01-04 09:43:09 +00:00
parent 5f8ffed011
commit 7388346579
6 changed files with 25 additions and 14 deletions
+6 -4
View File
@@ -63,8 +63,8 @@ class AdminGroupsControllerCore extends AdminController
'reduction' => array(
'title' => $this->l('Discount'),
'width' => 50,
'align' =>
'right'
'align' => 'right',
'type' => 'percent'
),
'nb' => array(
'title' => $this->l('Members'),
@@ -184,7 +184,7 @@ class AdminGroupsControllerCore extends AdminController
),
array(
'type' => 'text',
'label' => $this->l('Discount:'),
'label' => $this->l('Discount (%):'),
'name' => 'reduction',
'size' => 33,
'desc' => $this->l('Will automatically apply this value as a discount on ALL shop\'s products for this group\'s members.')
@@ -246,6 +246,8 @@ class AdminGroupsControllerCore extends AdminController
)
);
$this->fields_value['reduction'] = isset($group->reduction) ? $group->reduction : 0;
$trads = array(
'Home' => $this->l('Home'),
'selected' => $this->l('selected'),
@@ -255,10 +257,10 @@ class AdminGroupsControllerCore extends AdminController
'Uncheck All' => $this->l('Uncheck All'),
'search' => $this->l('Search a category')
);
$this->tpl_form_vars['categoryTreeView'] = Helper::renderAdminCategorieTree($trads, array(), 'id_category', true, false, array(), true);
return parent::renderForm();
}
protected function formatCategoryDiscountList($id)