From 68ca3854e748f0bcc640cac4f53638ef1c266ca5 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Thu, 15 Mar 2018 14:58:16 -0700 Subject: [PATCH] LP#1755892: ensure profile is fleshed in patron search To test ------- [1] Do a catalog search or retrieve a record in the web staff client. [2] Click Place Hold. [3] On the place hold screen, click Patron Search. [4] Search for patrons (e.g. last name = "smith"). In the results grid, the Profile column is empty. [5] Apply the patch and repeat steps 3 and 4. This time, the Profile column should contain the profile name. Signed-off-by: Jeff Davis Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/services/patron_search.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/patron_search.js b/Open-ILS/web/js/ui/default/staff/services/patron_search.js index 07f73bee8d..f19678f6c2 100644 --- a/Open-ILS/web/js/ui/default/staff/services/patron_search.js +++ b/Open-ILS/web/js/ui/default/staff/services/patron_search.js @@ -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( -- 2.11.0