https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38886

--- Comment #3 from Laura Escamilla <[email protected]> ---
Created attachment 202546
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202546&action=edit
Bug 38886: Update borrowers.lastseen on patron modification

Column borrowers.lastseen should be updated also when patron
is modified. This patch adds option "Modifying a patron" to
systempreference "TrackLastPatronActivityTriggers". When enabled
column is updated when patron is modified from "Modify patron"
page, but not when patron is modified with batch modification
tool.

To test:
1. Find a patron to modify.
2. Make some changes to patron info and save.
3. Check database with following query:
SELECT lastseen FROM borrowers WHERE borrowernumber = [borrowernumber];
=> Note that lastseen value is not updated.
4. Apply this patch.
5. Enable option "Modifying a patron" for syspref
"TrackLastPatronActivityTriggers".
6. Modify patron again and check database.
=> Note that lastseen value has been updated.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Laura_Escamilla <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to