mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Small cleaning up.
This commit is contained in:
@@ -33,11 +33,11 @@ class FireflyConfig
|
|||||||
*/
|
*/
|
||||||
public function delete($name): bool
|
public function delete($name): bool
|
||||||
{
|
{
|
||||||
$fullName = 'preference' . auth()->user()->id . $name;
|
$fullName = 'ff-config-' . $name;
|
||||||
if (Cache::has($fullName)) {
|
if (Cache::has($fullName)) {
|
||||||
Cache::forget($fullName);
|
Cache::forget($fullName);
|
||||||
}
|
}
|
||||||
Preference::where('user_id', auth()->user()->id)->where('name', $name)->delete();
|
Configuration::where('name', $name)->delete();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -33,9 +33,9 @@ class TagSupport extends Model
|
|||||||
public static function tagAllowAdvance(Tag $tag): bool
|
public static function tagAllowAdvance(Tag $tag): bool
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If this tag is a balancing act, and it contains transfers, it cannot be
|
* If this tag is a balancing act, and it contains transfers, it cannot be
|
||||||
* changes to an advancePayment.
|
* changes to an advancePayment.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($tag->tagMode == 'balancingAct' || $tag->tagMode == 'nothing') {
|
if ($tag->tagMode == 'balancingAct' || $tag->tagMode == 'nothing') {
|
||||||
foreach ($tag->transactionjournals as $journal) {
|
foreach ($tag->transactionjournals as $journal) {
|
||||||
|
Reference in New Issue
Block a user