[-] BO : #PSFV-343 : Group Name can't be empty.
This commit is contained in:
@@ -79,7 +79,8 @@ class AdminGroupShopControllerCore extends AdminController
|
|||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => $this->l('GroupShop name:'),
|
'label' => $this->l('GroupShop name:'),
|
||||||
'name' => 'name'
|
'name' => 'name',
|
||||||
|
'required' => true
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
@@ -255,6 +256,9 @@ class AdminGroupShopControllerCore extends AdminController
|
|||||||
|
|
||||||
public function postProcess()
|
public function postProcess()
|
||||||
{
|
{
|
||||||
|
if (Tools::isSubmit('submitAdd'.$this->table))
|
||||||
|
if (!isset($_POST['name']) || empty($_POST['name']))
|
||||||
|
$this->_errors[] = Tools::displayError('A group name is required.');
|
||||||
if (Tools::isSubmit('delete'.$this->table) || Tools::isSubmit('status') || Tools::isSubmit('status'.$this->table))
|
if (Tools::isSubmit('delete'.$this->table) || Tools::isSubmit('status') || Tools::isSubmit('status'.$this->table))
|
||||||
{
|
{
|
||||||
$object = $this->loadObject();
|
$object = $this->loadObject();
|
||||||
|
|||||||
Reference in New Issue
Block a user