From: Bill Erickson Date: Wed, 29 Oct 2014 21:10:38 +0000 (-0400) Subject: Added a check on the keepOpen variable when saving on whether or not to populate... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=843063dfcda31f409f2f5d1490f1336fd0a39f90;p=working%2FEvergreen.git Added a check on the keepOpen variable when saving on whether or not to populate notes Cross-port: 9e80302 --- 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',