[open-ils-commits] r11729 - trunk/Open-ILS/web/js/dojo/openils

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 2 15:22:19 EST 2009


Author: erickson
Date: 2009-01-02 15:22:16 -0500 (Fri, 02 Jan 2009)
New Revision: 11729

Modified:
   trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js
Log:
make sure opts exists before referencing it

Modified: trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js	2009-01-02 20:09:31 UTC (rev 11728)
+++ trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js	2009-01-02 20:22:16 UTC (rev 11729)
@@ -95,6 +95,7 @@
         retrieveAll : function ( fm_class /* Fieldmapper class hint */, opts /* Option hash */) {
             var pkey = fieldmapper[fm_class].Identifier;
 
+            if(!opts) opts = {};
             var order_by = {};
             if (opts.order_by) order_by.order_by = opts.order_by;
             if (opts.select) order_by.select = opts.select;



More information about the open-ils-commits mailing list