From ac17b82d850c55c7ca8c9e2940bc97cba34812d3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 14 Feb 2024 19:34:36 +0100 Subject: [PATCH] Do not complain when the category is already set. --- app/TransactionRules/Actions/SetCategory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/TransactionRules/Actions/SetCategory.php b/app/TransactionRules/Actions/SetCategory.php index 9e184a30ed..40f605af66 100644 --- a/app/TransactionRules/Actions/SetCategory.php +++ b/app/TransactionRules/Actions/SetCategory.php @@ -89,7 +89,7 @@ class SetCategory implements ActionInterface $oldCategory = $object->categories()->first(); $oldCategoryName = $oldCategory?->name; if ((int)$oldCategory?->id === $category->id) { - event(new RuleActionFailedOnArray($this->action, $journal, trans('rules.already_linked_to_category', ['name' => $category->name]))); + //event(new RuleActionFailedOnArray($this->action, $journal, trans('rules.already_linked_to_category', ['name' => $category->name]))); return false; }