Fix importing of 'No Match' records from a queue
authorDan Wells <dbw2@calvin.edu>
Tue, 16 Aug 2011 15:03:16 +0000 (11:03 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 16 Aug 2011 15:03:16 +0000 (11:03 -0400)
This small change honors the 'No Match' checkbox when importing
from a queue.

This bug has existed for a while, but was only recently exposed
by 06e4d3370068002a303c9a5a03448ee0e1249fc0.  Before that commit,
no-match records always imported, even when you didn't want them.
After that commit, they import when wanted on the initial load,
but could not be imported from the queue.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/vandelay/vandelay.js

index 1ae7400..adadacf 100644 (file)
@@ -863,6 +863,11 @@ function vlImportSelectedRecords() {
 
     var options = {overlay_map : currentOverlayRecordsMap};
 
+    if(vlUploadQueueImportNoMatch.checked) {
+        options.import_no_match = true;
+        vlUploadQueueImportNoMatch.checked = false;
+    }
+
     if(vlUploadQueueAutoOverlayExact.checked) {
         options.auto_overlay_exact = true;
         vlUploadQueueAutoOverlayExact.checked = false;