From a925e1aa02f9765dad7f3ad90da922ccd24eca54 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 28 Jan 2023 06:59:26 +0100 Subject: [PATCH] Fix issue with rule repository validation --- app/Repositories/Rule/RuleRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Rule/RuleRepository.php b/app/Repositories/Rule/RuleRepository.php index 32a1377b4b..77c3ddd85b 100644 --- a/app/Repositories/Rule/RuleRepository.php +++ b/app/Repositories/Rule/RuleRepository.php @@ -426,7 +426,7 @@ class RuleRepository implements RuleRepositoryInterface $stopProcessing = $trigger['stop_processing'] ?? false; $active = $trigger['active'] ?? true; $type = $trigger['type']; - if (true === $trigger['prohibited']) { + if (true === ($trigger['prohibited'] ?? false) && !str_starts_with($type, '-')) { $type = sprintf('-%s', $type); }