[open-ils-commits] [GIT] Evergreen ILS branch master updated. b7a8f5de1821ed6ad16d5b5b66e1198e401f738a

Evergreen Git git at git.evergreen-ils.org
Thu Apr 25 13:52:53 EDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  b7a8f5de1821ed6ad16d5b5b66e1198e401f738a (commit)
      from  bd6514b0c09adcd26e1a843828c939a2d9fb5c64 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b7a8f5de1821ed6ad16d5b5b66e1198e401f738a
Author: Bill Erickson <berickxx at gmail.com>
Date:   Wed Apr 24 09:19:40 2019 -0400

    LP1642036 Group member detail grid query repair
    
    Teach the grid to automatically use the current version of the grid
    query in group member details lookup, since the query changes as
    patron's change and is sometimes applied after the grid has already
    absorbed the setQuery function.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: John Amundson <jamundson at cwmars.org>
    Signed-off-by: Jason Stephenson <jason at sigio.com>

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..a886195050 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
@@ -1066,6 +1066,15 @@ function($scope,  $routeParams , $q , $window , $timeout,  $location , egCore ,
         },
         setSort : function() {
             return ['create_date'];
+        },
+        watchQuery: function() {
+            if (patronSvc.current) {
+                return {
+                    usrgroup : patronSvc.current.usrgroup(),
+                    deleted : 'f'
+                };
+            }
+            return null;
         }
     }
 
@@ -1075,11 +1084,6 @@ function($scope,  $routeParams , $q , $window , $timeout,  $location , egCore ,
         // grid query.
         if (redirect) return;
         // let initTab() fetch the user first so we can know the usrgroup
-
-        grid.setQuery({
-            usrgroup : patronSvc.current.usrgroup(),
-            deleted : 'f'
-        });
         $scope.totals.owed = patronSvc.patron_stats.fines.group_balance_owed;
     });
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list