mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix issue with rule repository validation
This commit is contained in:
parent
81c37b3349
commit
a925e1aa02
@ -426,7 +426,7 @@ class RuleRepository implements RuleRepositoryInterface
|
|||||||
$stopProcessing = $trigger['stop_processing'] ?? false;
|
$stopProcessing = $trigger['stop_processing'] ?? false;
|
||||||
$active = $trigger['active'] ?? true;
|
$active = $trigger['active'] ?? true;
|
||||||
$type = $trigger['type'];
|
$type = $trigger['type'];
|
||||||
if (true === $trigger['prohibited']) {
|
if (true === ($trigger['prohibited'] ?? false) && !str_starts_with($type, '-')) {
|
||||||
$type = sprintf('-%s', $type);
|
$type = sprintf('-%s', $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user