Skip to content

Commit

Permalink
issue #178 - fix budget ID population in non-split transaction modal …
Browse files Browse the repository at this point in the history
…(broken in last commit)
  • Loading branch information
jantman committed Mar 24, 2018
1 parent 06eb9d9 commit 07554ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biweeklybudget/flaskapp/static/js/transactions_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function transModalDivFillAndShow(msg) {
$('#trans_frm_transfer_p').show();
}
if(msg['budgets'].length == 1) {
$('#trans_frm_budget option[value=' + msg['budget_id'] + ']').prop('selected', 'selected').change();
$('#trans_frm_budget option[value=' + msg['budgets'][0]['id'] + ']').prop('selected', 'selected').change();
} else {
$('#trans_frm_is_split').prop('checked', true);
$('#trans_frm_budget_group').hide();
Expand Down

0 comments on commit 07554ea

Please sign in to comment.