Skip to content

Firefly III: a personal finances manager

Better error handling

James Cole7103098fe728
diff --git a/resources/assets/js/components/transactions/CreateTransaction.vue b/resources/assets/js/components/transactions/CreateTransaction.vue
index 932d99899a..ee55fd6b91 100644
--- a/resources/assets/js/components/transactions/CreateTransaction.vue
+++ b/resources/assets/js/components/transactions/CreateTransaction.vue
@@ -746,6 +746,10 @@ export default {
case 'budget_id':
case 'bill_id':
case 'description':
+ case 'type':
+ this.transactions[transactionIndex].errors.source_account = [this.$t('firefly.select_source_account')];
+ this.transactions[transactionIndex].errors.destination_account = [this.$t('firefly.select_dest_account')];
+ break;
case 'tags':
this.transactions[transactionIndex].errors[fieldName] = errors.errors[key];
break;
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index aadba03ec8..f700910810 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -1541,6 +1541,8 @@ return [
'submission_options' => 'Submission options',
'apply_rules_checkbox' => 'Apply rules',
'fire_webhooks_checkbox' => 'Fire webhooks',
+ 'select_source_account' => 'Please select or type a valid source account name',
+ 'select_dest_account' => 'Please select or type a valid destination account name',
// convert stuff:
'convert_is_already_type_Withdrawal' => 'This transaction is already a withdrawal',