LP#1965317 Barcode Completion on Traditional Cat Staff Holds
authorDan Briem <dbriem@wlsmail.org>
Thu, 17 Mar 2022 20:38:10 +0000 (16:38 -0400)
committerJane Sandberg <sandbergja@gmail.com>
Wed, 20 Apr 2022 05:39:04 +0000 (22:39 -0700)
This allows the completed barcode to populate in the barcode
input when the hold group interface isn't rendered.

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>

Open-ILS/web/js/ui/default/opac/staff.js

index f54127b..caa7e86 100644 (file)
@@ -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;