[open-ils-commits] r19159 - branches/rel_2_0/Open-ILS/web/opac/common/js (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 11 16:49:25 EST 2011
Author: phasefx
Date: 2011-01-11 16:49:19 -0500 (Tue, 11 Jan 2011)
New Revision: 19159
Modified:
branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js
Log:
fix regression with org selector when specifying ?ol= and the org unit hiding setting is unset
Modified: branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js 2011-01-11 21:48:57 UTC (rev 19158)
+++ branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js 2011-01-11 21:49:19 UTC (rev 19159)
@@ -854,7 +854,11 @@
if ( findOrgDepth( context_org ) < depth ) {
return false; // disable org hiding if Original Location doesn't make sense with setting depth (avoids disjointed org selectors)
}
- return { 'org' : findOrgUnit(context_org), 'depth' : depth };
+ if (depth) {
+ return { 'org' : findOrgUnit(context_org), 'depth' : depth };
+ } else {
+ return false;
+ }
}
var orgTreeSelector;
More information about the open-ils-commits
mailing list