LP#1463166 Fix Batch update of Funds in Selection Lists
authorLiam Whalen <liam.whalen@bc.libraries.coop>
Sat, 19 Sep 2015 03:24:14 +0000 (20:24 -0700)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 17 Sep 2017 20:26:25 +0000 (16:26 -0400)
Selection lists are currently unable to batch update funds.  The problem
stems from the fact that the Fund selection list is not populated in the
copy rows.  New code used to limit the number of funds, in the dropdown
list, to those funds available to the user was added for purchase
orders.  However, these changes were not added to Selection Lists.  This
code adds the new call to initBatchUpdater to the selection list code.

Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Open-ILS/web/js/ui/default/acq/common/li_table.js

index 7c19fef..76fca7f 100644 (file)
@@ -276,7 +276,7 @@ function AcqLiTable() {
         dojo.forEach(
             ["owning_lib","location","collection_code","circ_modifier","fund"],
             function(field) {
-                var args = self.afwCopyFieldArgs(field, "CREATE_PURCHASE_ORDER");
+                var args = self.afwCopyFieldArgs(field, 'CREATE_PICKLIST, CREATE_PURCHASE_ORDER');
                 args.parentNode = dojo.byId("acq-bu-" + field);
 
                 if (field == 'fund') {