mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Small cleaning up.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user