LP#1755892: ensure profile is fleshed in patron search user/jeffdavis/lp1755892-place-hold-patron-search-profile
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 15 Mar 2018 21:58:16 +0000 (14:58 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 15 Mar 2018 21:59:09 +0000 (14:59 -0700)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/web/js/ui/default/staff/services/patron_search.js

index 07f73be..f19678f 100644 (file)
@@ -685,6 +685,10 @@ function($scope,  $q,  $routeParams,  $timeout,  $window,  $location,  egCore,
             return $q.when();
         }
 
+        var fleshFields = egUser.defaultFleshFields.slice(0);
+        if (fleshFields.indexOf('profile') == -1)
+            fleshFields.push('profile');
+
         egProgressDialog.open(); // Indeterminate
 
         patronSvc.patrons = [];
@@ -698,7 +702,7 @@ function($scope,  $q,  $routeParams,  $timeout,  $window,  $location,  egCore,
             fullSearch.sort,
             fullSearch.inactive,
             fullSearch.home_ou,
-            egUser.defaultFleshFields,
+            fleshFields,
             fullSearch.offset
 
         ).then(