From c0fdf44ad2a03f30c815b7074b38b80dd23268ec Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 7 Oct 2016 11:40:03 +0200 Subject: [PATCH] Small cleaning up. --- app/Support/FireflyConfig.php | 4 ++-- app/Support/Models/TagSupport.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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) {