mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Do not complain when the category is already set.
This commit is contained in:
@@ -89,7 +89,7 @@ class SetCategory implements ActionInterface
|
|||||||
$oldCategory = $object->categories()->first();
|
$oldCategory = $object->categories()->first();
|
||||||
$oldCategoryName = $oldCategory?->name;
|
$oldCategoryName = $oldCategory?->name;
|
||||||
if ((int)$oldCategory?->id === $category->id) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user