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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();