Skip to content

Firefly III: a personal finances manager

Better event.

James Colefbbf00245142
diff --git a/frontend/src/components/transactions/Create.vue b/frontend/src/components/transactions/Create.vue
index 10a5caf589..1fae2d4238 100644
--- a/frontend/src/components/transactions/Create.vue
+++ b/frontend/src/components/transactions/Create.vue
@@ -38,7 +38,7 @@
v-on:set-account="storeAccountValue($event)"
v-on:switch-accounts="switchAccounts($event)"
v-on:set-amount="storeAmount(index, $event)"
- v-on:set-foreign-currency-id="storeForeignCurrencyId(index, $event)"
+ v-on:set-foreign-currency-id="storeField($event)"
v-on:set-foreign-amount="storeForeignAmount(index, $event)"
v-on:set-date="storeDate($event)"
v-on:set-time="storeTime($event)"
diff --git a/frontend/src/components/transactions/TransactionForeignCurrency.vue b/frontend/src/components/transactions/TransactionForeignCurrency.vue
index ec73abf3ba..3f4aca0258 100644
--- a/frontend/src/components/transactions/TransactionForeignCurrency.vue
+++ b/frontend/src/components/transactions/TransactionForeignCurrency.vue
@@ -58,7 +58,7 @@ export default {
this.dstCurrencyId = value;
},
selectedCurrency: function(value) {
- this.$emit('set-foreign-currency-id', value);
+ this.$emit('set-foreign-currency-id',{field: 'foreign_currency_id', index: this.index, value: value});
},
transactionType: function (value) {
this.lockedCurrency = 0;