Added a check on the keepOpen variable when saving on whether or not to populate...
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:10:38 +0000 (17:10 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: 9e80302

Open-ILS/xul/staff_client/server/cat/update_items.js

index 9ff9d74..5603768 100644 (file)
@@ -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',