[open-ils-commits] r19156 - branches/rel_1_6/Open-ILS/web/opac/common/js (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 11 16:47:29 EST 2011
Author: phasefx
Date: 2011-01-11 16:47:23 -0500 (Tue, 11 Jan 2011)
New Revision: 19156
Modified:
branches/rel_1_6/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_1_6/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/opac/common/js/opac_utils.js 2011-01-11 21:45:53 UTC (rev 19155)
+++ branches/rel_1_6/Open-ILS/web/opac/common/js/opac_utils.js 2011-01-11 21:47:23 UTC (rev 19156)
@@ -823,7 +823,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