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

This commit is contained in:
lLefevre
2011-12-29 16:41:49 +00:00
parent 4de8e347f5
commit c4f0fcb643
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();
}
}