[open-ils-commits] r12683 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 26 11:21:28 EDT 2009


Author: erickson
Date: 2009-03-26 11:21:26 -0400 (Thu, 26 Mar 2009)
New Revision: 12683

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
added an explicit error for a common occurence in autofieldwidget land

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2009-03-26 14:45:44 UTC (rev 12682)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2009-03-26 15:21:26 UTC (rev 12683)
@@ -38,6 +38,9 @@
                     if(fields[f].name == this.fmField)
                         this.idlField = fields[f];
             }
+
+            if(!this.idlField) 
+                throw new Error("AutoFieldWidget could not determine which field to render.  We need more information.");
         },
 
         /**



More information about the open-ils-commits mailing list