Bugzilla – Attachment 58913 Details for
Bug 17782
Patron updated_on field should be set to current timestamp when borrower is deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17782 - Patron updated_on field should be set to current timestamp when borrower is deleted
Bug-17782---Patron-updatedon-field-should-be-set-t.patch (text/plain), 1.18 KB, created by
Claire Gravely
on 2017-01-13 07:09:54 UTC
(
hide
)
Description:
Bug 17782 - Patron updated_on field should be set to current timestamp when borrower is deleted
Filename:
MIME Type:
Creator:
Claire Gravely
Created:
2017-01-13 07:09:54 UTC
Size:
1.18 KB
patch
obsolete
>From 83f25f1ffbedae742e0954882cfe0b9be2ba920b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 15 Dec 2016 14:17:55 +0000 >Subject: [PATCH] Bug 17782 - Patron updated_on field should be set to current > timestamp when borrower is deleted > >To test: >01 Find a patron >02 Get the updated_on value from the db in borrowers table >03 Delete the patron >04 Get the update_on value from the db on deletedborrowers table >05 Values from 02 and 04 are the same >06 Apply patch >07 Repeat 01-04 >08 Values should now be different > >Signed-off-by: Claire Gravely <claire_gravely@hotmail.com> >--- > Koha/Patron.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 698134a..4fd1ffe 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -413,6 +413,7 @@ This can be done before deleting a patron, to make sure the data are not complet > sub move_to_deleted { > my ($self) = @_; > my $patron_infos = $self->unblessed; >+ delete $patron_infos->{updated_on}; #This ensures the updated_on date in deletedborrowers will be set to the current timestamp > return Koha::Database->new->schema->resultset('Deletedborrower')->create($patron_infos); > } > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17782
:
58203
|
58890
|
58913
|
59558
|
59573
|
59583
|
59605
|
59606
|
59607
|
60047