Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #12992
James Cole7b4e58f11029
diff --git a/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.js b/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.jsindex 9a5bf81a22..683c1902e0 100644--- a/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.js+++ b/resources/assets/v3/js/pages/transactions/shared/show-message-or-redirect.js@@ -19,6 +19,7 @@*/import i18next from "i18next";+import Tags from "bootstrap5-tags";export function showMessageOrRedirectUser(sourceOfCall) {console.log('Called showMessageOrRedirectUser("' + sourceOfCall + '")');@@ -55,6 +56,12 @@ export function showMessageOrRedirectUser(sourceOfCall) {// reset the form.if (this.formStates.resetButton) {this.entries = [];+ // make sure tags is empty.+ document.querySelectorAll('.ac-tags').forEach(function (el) {+ Tags.getInstance(el).clear();+ //console.log('el', el);+ //el.innerHTML = '';+ });this.addSplit();this.groupProperties.totalAmount = 0;}diff --git a/resources/views/partials/form/transaction/tags.blade.php b/resources/views/partials/form/transaction/tags.blade.phpindex eaf874f97c..0d70c79516 100644--- a/resources/views/partials/form/transaction/tags.blade.php+++ b/resources/views/partials/form/transaction/tags.blade.php@@ -16,40 +16,3 @@</div></div>--<!---<div class="row mb-2">- <label :for="'tags_' + index"- class="col-sm-1 col-form-label d-none d-sm-block">- <em title="{{ __('firefly.tags') }}" class="bi bi-tag"></em>- </label>- <template x-for="(currentTag, index) in transaction.tags" :key="index">- <option :value="currentTag" x-text="currentTag" selected="selected"></option>- </template>- <div class="col-sm-10">- <select- class="form-select ac-tags"- :id="'tags_' + index"- :name="'tags['+index+'][]'"- x-model="transaction.tags"- multiple>- <option value="">{{ __('firefly.select_tag') }}</option>- <template x-for="(currentValue, index) in transaction.tags" :key="index">- <option :label="index" :value="index" x-text="index" selected="selected"></option>- </template>- </select>-- </div>-</div>--<option value="currentValue" x-text="currentValue" selected="selected"></option>- :value="tag"-<template x-for="(tag, index) in transaction.tags" :key="index">- <option value="bla">bla</option>- </template>-- :value="tag"-<template x-for="(tag, index) in transaction.tags" :key="index">- <option value="bla">bla</option>- </template>- -->