[open-ils-commits] r11612 - trunk/Open-ILS/web/js/ui/default/conify/global/config

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 17 15:48:58 EST 2008


Author: erickson
Date: 2008-12-17 15:48:54 -0500 (Wed, 17 Dec 2008)
New Revision: 11612

Modified:
   trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js
Log:
fixed some store object handling logic in delete

Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js	2008-12-17 20:39:16 UTC (rev 11611)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js	2008-12-17 20:48:54 UTC (rev 11612)
@@ -67,11 +67,12 @@
         return;
 
     var item = list[idx];
+    var code = cmGrid.store.getValue(item, 'code');
 
     fieldmapper.standardRequest(
         ['open-ils.permacrud', 'open-ils.permacrud.delete.ccm'],
         {   async: true,
-            params: [openils.User.authtoken, item.code],
+            params: [openils.User.authtoken, code],
             oncomplete: function(r) {
                 if(stat = openils.Util.readResponse(r)) {
                     // delete succeeded, remove it from the grid and the local cache



More information about the open-ils-commits mailing list