Bugzilla – Attachment 152657 Details for
Bug 34117
Duplicate patron sets dateenrolled incorrectly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34117: Add ymd to date_from_string when duplicating patron
Bug-34117-Add-ymd-to-datefromstring-when-duplicati.patch (text/plain), 1.22 KB, created by
ByWater Sandboxes
on 2023-06-24 14:34:21 UTC
(
hide
)
Description:
Bug 34117: Add ymd to date_from_string when duplicating patron
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2023-06-24 14:34:21 UTC
Size:
1.22 KB
patch
obsolete
>From d6ce4e3a0fda5984a232fe3be28c87f85907c2a9 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 23 Jun 2023 20:23:55 +0000 >Subject: [PATCH] Bug 34117: Add ymd to date_from_string when duplicating > patron > >To test: >- have or make a patron >- duplicate that patron >- on the memberentry page for your new patron, before you save them, scroll down to Registration Date and see that it's defaulting to a date in the future >- Apply patch and restart_all >- Try duplicating a patron again. >- Date should correctly set to today > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> >--- > members/memberentry.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 7d58011f62..fcfa4a1afb 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -721,7 +721,7 @@ if (!defined($data{'dateenrolled'}) or $data{'dateenrolled'} eq ''){ > $data{'dateenrolled'} = dt_from_string; > } > if ( $op eq 'duplicate' ) { >- $data{'dateenrolled'} = dt_from_string; >+ $data{'dateenrolled'} = dt_from_string->ymd; > $data{dateexpiry} = $category->get_expiry_date( $data{dateenrolled} ); > } > if (C4::Context->preference('uppercasesurnames')) { >-- >2.30.2
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 34117
:
152656
|
152657
|
153977
|
153982
|
153991
|
153992
|
154061
|
154062