Merge branch 'develop' into 5.8-dev

And fix rule creation and edit etc
This commit is contained in:
James Cole
2022-10-01 07:34:30 +02:00
10 changed files with 35 additions and 18 deletions

View File

@@ -425,9 +425,13 @@ class RuleRepository implements RuleRepositoryInterface
$value = $trigger['value'] ?? '';
$stopProcessing = $trigger['stop_processing'] ?? false;
$active = $trigger['active'] ?? true;
$type = $trigger['type'];
if (true === $trigger['prohibited']) {
$type = sprintf('-%s', $type);
}
$triggerValues = [
'action' => $trigger['type'],
'action' => $type,
'value' => $value,
'stop_processing' => $stopProcessing,
'order' => $order,