From 8e51208a17a9d9aa6c6f41ba3b65e28852b25f55 Mon Sep 17 00:00:00 2001 From: blake Date: Mon, 2 Oct 2017 14:42:06 -0500 Subject: [PATCH] lp1642036 Web Staff Client - Group Members Don't Display Altered app.js so that the call to grid.setQuery happens after the initTab execution. Using .then(). Test: 1. Login to webby. Search patrons. Find a patron. 2. Click a search result and click the "Other" Menu. 3. Choose "Group Member Details" 4. Notice that there are no grid items. 5. Apply the patch. Repeat 1-3. 6. Notice that there is at least one grid item. Signed-off-by: blake --- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index d007257e4f..1630e4e425 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -1073,9 +1073,12 @@ function($scope, $routeParams , $q , $window , $timeout, $location , egCore , .then(function(redirect) { // if we are redirecting to the alerts page, avoid updating the // grid query. - if (redirect) return; + if (redirect) return redirect; // let initTab() fetch the user first so we can know the usrgroup + }).then(function(redirect){ + + if (redirect) return; grid.setQuery({ usrgroup : patronSvc.current.usrgroup(), deleted : 'f' -- 2.11.0