From: Jeff Davis Date: Thu, 15 Mar 2018 21:58:16 +0000 (-0700) Subject: LP#1755892: ensure profile is fleshed in patron search X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=37253531136a78f56dfc47e86af6c15c5257c85f;p=working%2FEvergreen.git LP#1755892: ensure profile is fleshed in patron search Signed-off-by: Jeff Davis --- 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(