[-] BO : #PSTEST-180 : BugFix : Insert new attributes in groups
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11770 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -580,10 +580,10 @@ class AdminControllerCore extends Controller
|
|||||||
*/
|
*/
|
||||||
public function processSave($token)
|
public function processSave($token)
|
||||||
{
|
{
|
||||||
if ($this->id_object)
|
if ((!$this->id_object) || (!Tools::getValue('submitAdd'.$this->table)))
|
||||||
return $this->processUpdate($token);
|
|
||||||
else
|
|
||||||
return $this->processAdd($token);
|
return $this->processAdd($token);
|
||||||
|
else
|
||||||
|
return $this->processUpdate($token);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -642,7 +642,7 @@ class AdminControllerCore extends Controller
|
|||||||
/* Checking fields validity */
|
/* Checking fields validity */
|
||||||
$this->validateRules();
|
$this->validateRules();
|
||||||
|
|
||||||
if (!count($this->_errors))
|
if (count($this->_errors) <= 0)
|
||||||
{
|
{
|
||||||
$id = (int)Tools::getValue($this->identifier);
|
$id = (int)Tools::getValue($this->identifier);
|
||||||
|
|
||||||
@@ -713,7 +713,6 @@ class AdminControllerCore extends Controller
|
|||||||
' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_errors = array_unique($this->_errors);
|
$this->_errors = array_unique($this->_errors);
|
||||||
if (count($this->_errors) > 0)
|
if (count($this->_errors) > 0)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user