after auto-loading the IDL class, re-set the local fmIDL handle
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Sep 2010 17:24:54 +0000 (17:24 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Sep 2010 17:24:54 +0000 (17:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17701 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Open-ILS/web/js/dojo/openils/widget/AutoWidget.js

index 801c824..1fc77a0 100644 (file)
@@ -62,8 +62,10 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) {
                 this.fmClass = this.fmObject.classname;
             this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
 
-            if(this.fmClass && !this.fmIDL)
+            if(this.fmClass && !this.fmIDL) {
                 fieldmapper.IDL.load([this.fmClass]);
+                this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
+            }
 
             this.suppressLinkedFields = args.suppressLinkedFields || [];
 
index cb04206..6c065b1 100644 (file)
@@ -20,8 +20,10 @@ if(!dojo._hasResource['openils.widget.AutoWidget']) {
             if(this.fmObject)
                 this.fmClass = this.fmObject.classname;
             this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
-            if(this.fmClass && !this.fmIDL) 
+            if(!this.fmIDL) {
                 fieldmapper.IDL.load([this.fmClass]);
+                this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
+            }
             this.buildSortedFieldList();
         },