webstaff serials: use dist holding library to determine MFHDs eligible to link to
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 22:05:20 +0000 (18:05 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 22:05:20 +0000 (18:05 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/serials/directives/subscription_manager.js

index c1a6772..5fe4077 100644 (file)
@@ -532,7 +532,7 @@ function($scope , $q , $uibModalInstance , egCore , row , bibId ) {
     $scope.cancel = function () { $uibModalInstance.dismiss() }
     $scope.legacies = {};
     egCore.pcrud.search('sre', {
-            record: bibId, owning_lib : row['owning_lib.id'], active: 't', deleted: 'f'
+            record: bibId, owning_lib : row['sdist.holding_lib.id'], active: 't', deleted: 'f'
         }, {}, { atomic : true }
     ).then(
         function(resp) { // maybe success