Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Delete tags now possible.
James Colecd0c6439c27d
diff --git a/app/Repositories/Journal/JournalRepository.php b/app/Repositories/Journal/JournalRepository.phpindex 449ee4bd95..330ff2fe81 100644--- a/app/Repositories/Journal/JournalRepository.php+++ b/app/Repositories/Journal/JournalRepository.php@@ -230,6 +230,10 @@ class JournalRepository implements JournalRepositoryInterfaceif (count($ids) > 0) {DB::table('tag_transaction_journal')->where('transaction_journal_id', $journal->id)->whereNotIn('tag_id', $ids)->delete();}+ // if count is zero, delete them all:+ if(count($ids) == 0) {+ DB::table('tag_transaction_journal')->where('transaction_journal_id', $journal->id)->delete();+ }// connect each tag to journal (if not yet connected):/** @var Tag $tag */