diff --git a/app/Support/FireflyConfig.php b/app/Support/FireflyConfig.php index 13777acf6a..a6a528b8a0 100644 --- a/app/Support/FireflyConfig.php +++ b/app/Support/FireflyConfig.php @@ -33,11 +33,11 @@ class FireflyConfig */ public function delete($name): bool { - $fullName = 'preference' . auth()->user()->id . $name; + $fullName = 'ff-config-' . $name; if (Cache::has($fullName)) { Cache::forget($fullName); } - Preference::where('user_id', auth()->user()->id)->where('name', $name)->delete(); + Configuration::where('name', $name)->delete(); return true; } diff --git a/app/Support/Models/TagSupport.php b/app/Support/Models/TagSupport.php index cc1374c3ea..f053ef42cf 100644 --- a/app/Support/Models/TagSupport.php +++ b/app/Support/Models/TagSupport.php @@ -33,9 +33,9 @@ class TagSupport extends Model public static function tagAllowAdvance(Tag $tag): bool { /* - * If this tag is a balancing act, and it contains transfers, it cannot be - * changes to an advancePayment. - */ + * If this tag is a balancing act, and it contains transfers, it cannot be + * changes to an advancePayment. + */ if ($tag->tagMode == 'balancingAct' || $tag->tagMode == 'nothing') { foreach ($tag->transactionjournals as $journal) {