From 843063dfcda31f409f2f5d1490f1336fd0a39f90 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 29 Oct 2014 17:10:38 -0400 Subject: [PATCH] Added a check on the keepOpen variable when saving on whether or not to populate notes Cross-port: 9e80302 --- Open-ILS/xul/staff_client/server/cat/update_items.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/update_items.js b/Open-ILS/xul/staff_client/server/cat/update_items.js index 9ff9d74e84..5603768b45 100644 --- a/Open-ILS/xul/staff_client/server/cat/update_items.js +++ b/Open-ILS/xul/staff_client/server/cat/update_items.js @@ -1060,7 +1060,7 @@ g.gather_copies = function() { } } -g.stash_and_close = function(param, keepopen) { +g.stash_and_close = function(param, keepOpen) { oils_unlock_page(); @@ -1086,7 +1086,9 @@ g.stash_and_close = function(param, keepopen) { } // Collects and persists lineitem notes - g.handle_li_notes(); + if (!keepOpen){ + g.handle_li_notes(); + } var volume_list = []; // fill volume list @@ -1123,7 +1125,7 @@ g.stash_and_close = function(param, keepopen) { } var dont_close = false; - if (keepopen == true){ + if (keepOpen == true){ dont_close = true; } @@ -1193,7 +1195,7 @@ g.stash_and_close = function(param, keepopen) { try { // If there are copy specific notes, persist them - if (g.notes.length > 0){ + if (g.notes.length > 0 && !keepOpen){ r = g.network.simple_request( 'FM_ACPN_BATCH_CREATE', -- 2.11.0