Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Small cleaning up.
James Colec0fdf44ad2a0
diff --git a/app/Support/FireflyConfig.php b/app/Support/FireflyConfig.phpindex 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.phpindex cc1374c3ea..f053ef42cf 100644--- a/app/Support/Models/TagSupport.php+++ b/app/Support/Models/TagSupport.php@@ -33,9 +33,9 @@ class TagSupport extends Modelpublic 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) {