[-] BO : #PSTEST-253 fix bug added groups

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11904 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-29 16:41:49 +00:00
parent 09b1c697d3
commit 44ee6c6d0f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ class GroupCore extends ObjectModel
$sql .= '("'.(int)$mod.'", "'.(int)$s.'", "'.(int)$id_group.'"),';
// removing last comma to avoid SQL error
$sql = substr($sql, 0, strlen($sql) - 1);
Db::getInstance()->execute($sql);
return (bool)Db::getInstance()->execute($sql);
}
}
+1 -1
View File
@@ -345,8 +345,8 @@ class AdminGroupsControllerCore extends AdminController
else
{
$this->updateCategoryReduction();
$this->updateRestrictions();
parent::processSave($token);
$this->updateRestrictions();
}
}