fixed some store object handling logic in delete
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Dec 2008 20:48:54 +0000 (20:48 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Dec 2008 20:48:54 +0000 (20:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11612 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js

index 4a58f9a..4834bd2 100644 (file)
@@ -67,11 +67,12 @@ function _deleteFromGrid(list, idx) {
         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