[-] BO : fix #PSTEST-392

This commit is contained in:
lLefevre
2012-01-09 16:34:04 +00:00
parent 13ea89c2c8
commit 7dfd7d6da0
@@ -236,7 +236,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
return parent::renderForm(); return parent::renderForm();
} }
public function initFormAttributes() public function renderFormAttributes()
{ {
$attributes_groups = AttributeGroup::getAttributesGroups($this->context->language->id); $attributes_groups = AttributeGroup::getAttributesGroups($this->context->language->id);
@@ -246,15 +246,6 @@ class AdminAttributesGroupsControllerCore extends AdminController
'image' => '../img/admin/asterisk.gif' 'image' => '../img/admin/asterisk.gif'
), ),
'input' => array( 'input' => array(
array(
'type' => 'text',
'label' => $this->l('Name:'),
'name' => 'name',
'lang' => true,
'size' => 33,
'required' => true,
'hint' => $this->l('Invalid characters:').' <>;=#{}'
),
array( array(
'type' => 'select', 'type' => 'select',
'label' => $this->l('Group type:'), 'label' => $this->l('Group type:'),
@@ -266,6 +257,15 @@ class AdminAttributesGroupsControllerCore extends AdminController
'name' => 'name' 'name' => 'name'
), ),
'desc' => $this->l('Choose the type of the attribute group') 'desc' => $this->l('Choose the type of the attribute group')
),
array(
'type' => 'text',
'label' => $this->l('Name:'),
'name' => 'name',
'lang' => true,
'size' => 33,
'required' => true,
'hint' => $this->l('Invalid characters:').' <>;=#{}'
) )
) )
); );
@@ -377,7 +377,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
if (!$this->object = new Attribute((int)Tools::getValue('id_attribute'))) if (!$this->object = new Attribute((int)Tools::getValue('id_attribute')))
return; return;
$this->content .= $this->initFormAttributes(); $this->content .= $this->renderFormAttributes();
} }
else if ($this->display != 'view' && !$this->ajax) else if ($this->display != 'view' && !$this->ajax)
{ {