From: Thomas Berezansky Date: Thu, 16 Jun 2011 11:15:27 +0000 (-0400) Subject: Check if in staff client when placing holds X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7dbe75cc1bde68590b1a9c9a34ec879cf438572b;p=contrib%2FConifer.git Check if in staff client when placing holds Staff may have valid reasons to use a non-opac-visible org unit. So before bailing on a hidden org unit, check if we are in the staff client. Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/web/opac/skin/default/js/holds.js b/Open-ILS/web/opac/skin/default/js/holds.js index aaf7a2e4e9..9e95da9d4a 100644 --- a/Open-ILS/web/opac/skin/default/js/holds.js +++ b/Open-ILS/web/opac/skin/default/js/holds.js @@ -878,7 +878,7 @@ function holdsCheckPossibility(pickuplib, hold, recurse) { function holdsBuildOrgSelector(node) { if(!node) node = globalOrgTree; - if(!isTrue(node.opac_visible())) return; + if(!isTrue(node.opac_visible()) && !isXUL()) return; var render_this_org = true; var orgHiding = checkOrgHiding(); // value here is cached so not too painful with the recursion