[open-ils-commits] r19736 - trunk/Open-ILS/web/js/dojo/fieldmapper (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 14 12:34:30 EDT 2011
Author: erickson
Date: 2011-03-14 12:34:27 -0400 (Mon, 14 Mar 2011)
New Revision: 19736
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js
Log:
until futher investigation, roll back the changes of == to ===, since it was causing unexpected changes in behavior.
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js 2011-03-14 16:34:26 UTC (rev 19735)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js 2011-03-14 16:34:27 UTC (rev 19736)
@@ -46,7 +46,7 @@
};
fieldmapper.aou.LoadOrg = function (id, slim_ok) {
- if (slim_ok === null) slim_ok = fieldmapper.aou.slim_ok;
+ if (slim_ok == null) slim_ok = fieldmapper.aou.slim_ok;
var slim_o = fieldmapper.aou.OrgCache[id];
if (slim_o && (slim_ok || slim_o.loaded))
@@ -80,7 +80,7 @@
for (var i in fieldmapper.aou.OrgCache) {
var x = fieldmapper.aou.OrgCache[i].org;
- if (x.parent_ou() === null || x.parent_ou() === '') {
+ if (x.parent_ou() == null || x.parent_ou() == '') {
fieldmapper.aou.globalOrgTree = x;
continue;
}
@@ -135,7 +135,7 @@
fieldmapper.aou.findOrgDepth = fieldmapper.aou.prototype.findOrgDepth;
fieldmapper.aout.findOrgTypeFromDepth = function (depth) {
- if( depth === null ) return null;
+ if( depth == null ) return null;
fieldmapper.aout.LoadOrgTypes();
for( var i in fieldmapper.aout.OrgTypeCache ) {
var t = fieldmapper.aout.OrgTypeCache[i].type;
@@ -145,7 +145,7 @@
};
fieldmapper.aou.findOrgUnitSN = function (sn, slim_ok) {
- if (slim_ok === null) slim_ok = fieldmapper.aou.slim_ok;
+ if (slim_ok == null) slim_ok = fieldmapper.aou.slim_ok;
var org = fieldmapper.aou.OrgCacheSN[sn];
if (!org) {
for (var i in fieldmapper.aou.OrgCache) {
More information about the open-ils-commits
mailing list