Serials: Batch Receive interface Copy Location widget was inert
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 14 Nov 2013 20:59:55 +0000 (15:59 -0500)
committerDan Wells <dbw2@calvin.edu>
Mon, 20 Jan 2014 22:07:46 +0000 (17:07 -0500)
Choosing a value from the Copy Location widget wasn't working.  You'd
get a default copy location (or the one supplied by the Receive Unit
Copy Template) no matter what you set that control too.

This is fixed.  One does not read from XUL menulist element by using its
'value' property.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Open-ILS/xul/staff_client/server/serial/batch_receive.js

index 92d67d5..f2a15f7 100644 (file)
@@ -428,7 +428,8 @@ function BatchReceiver() {
         var node = dojo.query("*", node_by_name(field, row))[0];
 
         if (typeof(value) == "undefined") {
-            return node.value;
+            return node.selectedItem ?
+                node.selectedItem.value : node.value;
         } else {
             /* XXX The new two lines /should/ each do the same thing, but
              * apparently they don't.  With only one or the other, I get