Set default piggy for new transaction

Fixes #605. By explicitly setting the selected piggybank to the 0-piggy, new transactions will not inadvertently get coupled to a piggybank if the piggy’s name starts with characters that get sorted before `(` (such as `!` or `’`).
This commit is contained in:
Joris de Vries 2017-03-01 22:45:37 +01:00
parent dd1e9ecb32
commit 506e97e12d

View File

@ -77,7 +77,7 @@
{{ ExpandedForm.text('tags') }}
<!-- RELATE THIS TRANSFER TO A PIGGY BANK -->
{{ ExpandedForm.select('piggy_bank_id', piggies) }}
{{ ExpandedForm.select('piggy_bank_id', piggies, '0') }}
</div>
</div>