]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#2009281 Recent patrons duplication issues
authorDan Briem <dbriem@wlsmail.org>
Wed, 10 May 2023 15:04:27 +0000 (15:04 +0000)
committerJane Sandberg <js7389@princeton.edu>
Mon, 21 Aug 2023 23:12:09 +0000 (16:12 -0700)
commitafcd1cd8b5aa29af8e83c710106d0d0748e1403e
tree499587ab9b0655e3e10635389adc71f42e8fcb05
parent9b2606ee0655522f334fe9d5abf20900ca26f0be
LP#2009281 Recent patrons duplication issues

Converts the user ID to a number to avoid duplicates caused
by type mismatches.

Removes duplicates before the ID is added or the array is
trimmed to avoid prematurely removing IDs.

To test:
1. Set "Number of Retrievable Recent Patrons" setting to 2
2. Open a patron record
3. Open a different patron record
4. Open Circulation->Retrieve Last Patron
5. Open Circulation->Retrieve Recent Patrons
   Note: both patrons are present without duplicates

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Susan Morrison <smorrison@georgialibraries.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/staff/circ/patron/patron.service.ts
Open-ILS/web/js/ui/default/staff/services/patron_search.js