From 5ddf3636644560aec908afaf017bc04d832eacc4 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 27 Feb 2017 14:41:00 -0500 Subject: [PATCH] LP#1668351 Patrons with neg. balance selection repair Selecting a row in the webstaff Patrons With Negative Balances grid now only selects that patron, instead of all patrons. This was the result of the grid not having a correctly set unique identifier attribute. Signed-off-by: Bill Erickson Signed-off-by: Terran McCanna Signed-off-by: Kathy Lussier --- .../ui/default/staff/admin/local/circ/neg_balance_users.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/admin/local/circ/neg_balance_users.js b/Open-ILS/web/js/ui/default/staff/admin/local/circ/neg_balance_users.js index 43fa8780b8..d8acde1325 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/local/circ/neg_balance_users.js +++ b/Open-ILS/web/js/ui/default/staff/admin/local/circ/neg_balance_users.js @@ -20,7 +20,11 @@ function($scope , $q , $timeout , $location , $window , egCore , egGridDataProvi 'open-ils.actor', 'open-ils.actor.users.negative_balance', egCore.auth.token(), $scope.context_org.id()) - .then(deferred.resolve, null, deferred.notify); + .then(deferred.resolve, null, function(blob) { + // Give the grid a top-level identifier field + blob.usr_id = blob.usr.id(); + deferred.notify(blob) + }); return deferred.promise; } -- 2.43.2