// Fix duplication of conditions when editing specifice rules
This commit is contained in:
1 parent
918d47919d
commit
6195c83e80
2 files changed
+10
-6
No files matched your search
@@ -273,6 +273,7 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
|
||||
$conditions = array();
|
||||
if (Validate::isLoadedObject(($object = parent::processSave($token))))
|
||||
{
|
||||
$object->deleteConditions();
|
||||
foreach ($_POST as $key => $values)
|
||||
{
|
||||
if (preg_match('/^condition_group_([0-9]+)$/Ui', $key, $condition_group))
|
||||
|
||||
Reference in new issue
Block a user