mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fix #2945
This commit is contained in:
		| @@ -29,9 +29,7 @@ | ||||
|         <div class="col-sm-12"> | ||||
|             <select name="budget[]" ref="budget" v-model="value" @input="handleInput" class="form-control" | ||||
|                     v-if="this.budgets.length > 0"> | ||||
|                 <option v-for="cBudget in this.budgets"  :label="cBudget.name" :value="cBudget.id" | ||||
|  | ||||
|                 >{{cBudget.name}}</option> | ||||
|                 <option v-for="cBudget in this.budgets" :label="cBudget.name" :value="cBudget.id">{{cBudget.name}}</option> | ||||
|             </select> | ||||
|             <ul class="list-unstyled" v-for="error in this.error"> | ||||
|                 <li class="text-danger">{{ error }}</li> | ||||
| @@ -46,8 +44,7 @@ | ||||
|         props: ['transactionType', 'value', 'error','no_budget'], | ||||
|         mounted() { | ||||
|             this.loadBudgets(); | ||||
|             // console.log('budget value'); | ||||
|             // console.log(this.value); | ||||
|             //this.value = null === this.value ? 0 : this.value; | ||||
|         }, | ||||
|         data() { | ||||
|             return { | ||||
| @@ -68,6 +65,10 @@ | ||||
|                         { | ||||
|                             name: this.no_budget, | ||||
|                             id: 0, | ||||
|                         }, | ||||
|                         { | ||||
|                             name: this.no_budget, | ||||
|                             id: null, | ||||
|                         } | ||||
|                     ]; | ||||
|                     for (const key in res.data) { | ||||
|   | ||||
| @@ -170,6 +170,7 @@ | ||||
|                                             :error="transaction.errors.category" | ||||
|                                     ></category> | ||||
|                                     <tags | ||||
|                                             :transactionType="transactionType" | ||||
|                                             :tags="transaction.tags" | ||||
|                                             v-model="transaction.tags" | ||||
|                                             :error="transaction.errors.tags" | ||||
| @@ -203,7 +204,7 @@ | ||||
|                                 {{ $t('firefly.after_update_create_another') }} | ||||
|                             </label> | ||||
|                         </div> | ||||
|                         <div class="checkbox" v-if="transactionType.toLowerCase() !== 'reconciliation'"> | ||||
|                         <div class="checkbox" v-if="null !== transactionType && transactionType.toLowerCase() !== 'reconciliation'"> | ||||
|                             <label> | ||||
|                                 <input v-model="storeAsNew" name="store_as_new" type="checkbox"> | ||||
|                                 {{ $t('firefly.store_as_new') }} | ||||
| @@ -301,7 +302,9 @@ | ||||
|                 } | ||||
|             }, | ||||
|             setTransactionType(type) { | ||||
|                 this.transactionType = type; | ||||
|                 if(null !== type) { | ||||
|                     this.transactionType = type; | ||||
|                 } | ||||
|             }, | ||||
|             deleteTransaction(index, event) { | ||||
|                 event.preventDefault(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user