load the right class in the on-the-fly IDL loader call
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 17 Sep 2010 23:40:50 +0000 (23:40 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 17 Sep 2010 23:40:50 +0000 (23:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17788 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 1fc77a0..e6ec7c9 100644 (file)
@@ -366,7 +366,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) {
             var linkClass = this.idlField['class'];
             if(this.idlField.reltype != 'has_a')  return false;
             if(!fieldmapper.IDL.fmclasses[linkClass]) // class neglected by AutoIDL
-                fieldmapper.IDL.load([this.fmClass]);
+                fieldmapper.IDL.load([linkClass]);
             if(!fieldmapper.IDL.fmclasses[linkClass].permacrud) return false;
             if(!fieldmapper.IDL.fmclasses[linkClass].permacrud.retrieve) return false;