From 3663817ec8c975d09150fef4c578e1fbd7ae0312 Mon Sep 17 00:00:00 2001 From: Dan Briem Date: Thu, 17 Mar 2022 16:38:10 -0400 Subject: [PATCH] LP#1965317 Barcode Completion on Traditional Cat Staff Holds This allows the completed barcode to populate in the barcode input when the hold group interface isn't rendered. Signed-off-by: Dan Briem Signed-off-by: Michele Morgan Signed-off-by: Jane Sandberg --- Open-ILS/web/js/ui/default/opac/staff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/opac/staff.js b/Open-ILS/web/js/ui/default/opac/staff.js index f54127be27..caa7e86a51 100644 --- a/Open-ILS/web/js/ui/default/opac/staff.js +++ b/Open-ILS/web/js/ui/default/opac/staff.js @@ -175,7 +175,7 @@ function staff_hold_usr_barcode_changed2( return; } cur_hold_barcode = load_info.barcode; - if ((!only_settings || (isload && isload !== true)) && (sub_el && !sub_el.checked)) { + if ((!only_settings || (isload && isload !== true)) && (!sub_el || !sub_el.checked)) { // Safe at this point as we already set cur_hold_barcode document.getElementById('hold_usr_input').value = load_info.barcode; -- 2.11.0