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

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #149273|0                           |1
        is obsolete|                            |

--- Comment #24 from David Nind <[email protected]> ---
Created attachment 150119
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150119&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

Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
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/

Reply via email to