LP1778810: Copy Buckets Request Selected Copies user/abellenir/lp1778810-copy-buckets-request-selected
authora. bellenir <ab@grpl.org>
Wed, 27 Jun 2018 20:20:47 +0000 (16:20 -0400)
committera. bellenir <ab@grpl.org>
Wed, 27 Jun 2018 20:20:47 +0000 (16:20 -0400)
function passed to map was missing 'return' keyword, producing list of [undefined, undefined, ...]

Signed-off-by: a. bellenir <ab@grpl.org>
Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js

index a51eef4..b433915 100644 (file)
@@ -532,7 +532,7 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
     $scope.requestItems = function() {
         var copy_list = $scope.gridControls.selectedItems().map(
             function (i) {
-                i.id;
+                return i.id;
             }
         );