Bug 31145: Supply defaults for vendors and funds

This is a convenience bug - when koha testing docker creates sample vendors and budgets there are small issues:

1 - The vendor website gets a random string - you can't edit the vendor without removing this
2 - The funds have random values for statistical categories, and you get empty dropdowns when choosing a fund in ordering

To test:
1 - Apply patch
2 - Restart all
3 - Edit 'My vendor'
4 - note webstie is empty and you can save without changing anythign
5 - Add order to basket for my vendor
6 - Confirm that when selecting a fund statistic 1 and statistic 2 remain as text input fields

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-07-12 18:52:21 +00:00 committed by Tomas Cohen Arazi
parent f58099a244
commit b306cb47ce
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -601,6 +601,11 @@ sub _gen_default_values {
Aqbookseller => {
tax_rate => 0,
discount => 0,
url => undef,
},
Aqbudget => {
sort1_authcat => undef,
sort2_authcat => undef,
},
AuthHeader => {
marcxml => '',