[open-ils-commits] r17667 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 14 22:30:35 EDT 2010
Author: erickson
Date: 2010-09-14 22:30:32 -0400 (Tue, 14 Sep 2010)
New Revision: 17667
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
added useful exception that is typical w/ autofieldwidget when an IDL class is not defined
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-09-15 02:30:31 UTC (rev 17666)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-09-15 02:30:32 UTC (rev 17667)
@@ -358,6 +358,8 @@
_getLinkSelector : function() {
var linkClass = this.idlField['class'];
if(this.idlField.reltype != 'has_a') return false;
+ if(!fieldmapper.IDL.fmclasses[linkClass]) // class neglected by AutoIDL
+ throw new Error("IDL Class '" + linkClass + "' not defined");
if(!fieldmapper.IDL.fmclasses[linkClass].permacrud) return false;
if(!fieldmapper.IDL.fmclasses[linkClass].permacrud.retrieve) return false;
More information about the open-ils-commits
mailing list