From: erickson Date: Wed, 15 Sep 2010 17:24:54 +0000 (+0000) Subject: after auto-loading the IDL class, re-set the local fmIDL handle X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=144f558f4eef1d376704854eb1b45e6344cafa22;p=evergreen%2Fbjwebb.git after auto-loading the IDL class, re-set the local fmIDL handle git-svn-id: svn://svn.open-ils.org/ILS/trunk@17701 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 801c824df..1fc77a07e 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -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 || []; diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js index cb042062d..6c065b12e 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js @@ -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(); },