Fixed bug on description field

Signed-off-by: Maxco10 <mmagnani93@gmail.com>
This commit is contained in:
Maxco10
2023-10-17 21:59:56 +02:00
committed by GitHub
parent b6aa76477e
commit dc0a2a2a10

View File

@@ -289,7 +289,7 @@ class RuleRepository implements RuleRepositoryInterface
$rule->strict = array_key_exists('strict', $data) ? $data['strict'] : false;
$rule->stop_processing = array_key_exists('stop_processing', $data) ? $data['stop_processing'] : false;
$rule->title = $data['title'];
$rule->description = array_key_exists('stop_processing', $data) ? $data['stop_processing'] : null;
$rule->description = $data['description'];
$rule->save();
$rule->refresh();