[-] BO : #PSTEST-253 fix bug added groups
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -345,8 +345,8 @@ class AdminGroupsControllerCore extends AdminController
|
||||
else
|
||||
{
|
||||
$this->updateCategoryReduction();
|
||||
$this->updateRestrictions();
|
||||
parent::processSave($token);
|
||||
$this->updateRestrictions();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user