Merge pull request #8070 from Maxco10/patch-1

[Issue #8069] Fixed bug on description field
This commit is contained in:
James Cole
2023-10-26 08:06:33 +02:00
committed by GitHub

View File

@@ -288,8 +288,8 @@ class RuleRepository implements RuleRepositoryInterface
$rule->active = array_key_exists('active', $data) ? $data['active'] : true;
$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->title = array_key_exists('title', $data) ? $data['title'] : 'Untitled';
$rule->description = array_key_exists('description', $data) ? $data['description'] : '';
$rule->save();
$rule->refresh();