From b306cb47ce4e578ceeb7364b9fef0b57767a052e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 12 Jul 2022 18:52:21 +0000 Subject: [PATCH] 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 --- t/lib/TestBuilder.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm index 28a55fd4c3..59ba592da0 100644 --- a/t/lib/TestBuilder.pm +++ b/t/lib/TestBuilder.pm @@ -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 => '', -- 2.39.5