Bugzilla – Attachment 152656 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.16 KB, created by
Lucas Gass
on 2023-06-23 20:25:21 UTC
(
hide
)
Description:
Bug 34117: Add ymd to date_from_string when duplicating patron
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2023-06-23 20:25:21 UTC
Size:
1.16 KB
patch
obsolete
>From 4f7479b198542e1a6611713a2aa82f84f0a762dd 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 >--- > members/memberentry.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 64d9aa2aa7..7423defc59 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