https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39180
Nick Clemens (kidclamp) <n...@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #181941|0 |1 is obsolete| | --- Comment #4 from Nick Clemens (kidclamp) <n...@bywatersolutions.com> --- Created attachment 182691 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182691&action=edit Bug 39180: Catch exception when updating patron lastseen date This patch adds a catch during circulatoin actions and passes a message back to the caller For checkouts and renewals we don't have a method for passing messages so we simply catch the exception and warn - this seems reasonable, as we have now added a warning on the patron display that they are missing a guarantor To test: 1 - Create a Child type patron with no guarantor 2 - Create a patron in a non-child category that can_be_guarantee with no guarantor 3 - Check out an item to each patron above 4 - Enable system preference 'ChildNeedsGuarantor' and TrackLastPatronActivityTriggers - select all 5 - In mysql UPDATE borrowers SET datelastseen = '2025-01-01'; 6 - Restart all to clear cache (so update last seen will update) 7 - Attempt to checkout a book to either patron - 500 error 8 - Attempt to returnt he books the patrons have checked out - 500 error 9 - Attempt to renew their items - 500 error 10 - Apply patches, restart all 11 - Repeat checkout, renewal, checkin 12 - On checkout and renewal there should be a warning on the patron page, but actions succeed with no additional problems 13 - On return you get a warning letting you know the action succeeded but there is still a problem to resolve -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/