[Koha-bugs] [Bug 23486] Date last seen should be set upon registration

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 27 16:27:09 CEST 2023


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #134551|0                           |1
        is obsolete|                            |
 Attachment #134963|0                           |1
        is obsolete|                            |
 Attachment #134964|0                           |1
        is obsolete|                            |

--- Comment #19 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 148780
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148780&action=edit
Bug 23486: Set lastseen to default to current timestamp

Generally, a patron is not registered without some action from the patron
Defaulting the lastseen upon creation seems a reasonable way to set the initial
value.

This patch also makes the column NOT NULL to avoid any future data issues. To
handle any
currently NULL, we either set them to dateenrolled, or updated_on - the latter
is already
NOT NULL so is the bast fallback we have (assuming patron was also seen when
they were updated)

TO test:
Apply patches
Update database
Create a patron
Check their lastseen date

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list