From fe2eab3c9aff4b55a467f72857f4441865347d57 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Wed, 19 Jun 2024 10:45:18 -0700 Subject: [PATCH] Bug 37129: Patron attributes linked to an authorized value don't show a select menu in batch modification Test plan: 1. In Administration - Patron attribute types verify you have the default SHOW_BCODE using the YES_NO authorized value 2. Tools - Batch patron modification, add a patron card number or borrowernumber and continue 3. For Patron attribute select Show barcode on the summary screen item listings, and note that you get a blank text input rather than a select menu with Yes and No choices 4. Apply patch, restart_all 5. Repeat step 2 and 3, but note that you now get a Yes/No select menu Signed-off-by: David Nind Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer (cherry picked from commit b8614bd579f9e0369b84b5ad9cd1e6a2059d6fc6) Signed-off-by: Lucas Gass --- tools/modborrowers.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl index efe3a62ff6..502c1e0fa5 100755 --- a/tools/modborrowers.pl +++ b/tools/modborrowers.pl @@ -157,7 +157,7 @@ if ( $op eq 'cud-show' ) { attribute_code => $attr_type->code, attribute_lib => $attr_type->description, category_lib => $category_lib, - type => $attr_type->authorised_value_category ? 'cud-select' : 'text', + type => $attr_type->authorised_value_category ? 'select' : 'text', }; } -- 2.39.5