This commit is contained in:
James Cole
2019-08-27 07:01:09 +02:00
parent 7ef1098ab4
commit 467a04ad78
2 changed files with 3 additions and 2 deletions

View File

@@ -401,6 +401,8 @@
this.success_message = '<a href="transactions/show/' + groupId + '">The transaction</a> has been stored.';
this.error_message = '';
if (this.resetFormAfter) {
// also clear form.
this.resetTransactions();
this.addTransactionToArray();
}
if (button) {
@@ -409,7 +411,6 @@
} else {
console.log('Will redirect to previous URL. (' + previousUri + ')');
window.location.href = window.previousUri + '?transaction_group_id=' + groupId+ '&message=created';
//window.location.href = 'transactions/show/' + groupId + '?message=created';
}
},