Bugzilla – Attachment 43408 Details for
Bug 14956
Remove C4::Dates from files opac/*.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14956 - (follow) Validate incoming birth date
Bug-14956---follow-Validate-incoming-birth-date.patch (text/plain), 1.09 KB, created by
Marc Véron
on 2015-10-14 18:01:36 UTC
(
hide
)
Description:
Bug 14956 - (follow) Validate incoming birth date
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-10-14 18:01:36 UTC
Size:
1.09 KB
patch
obsolete
>From cad6b45063bc6cb93ad1cd557047a7ccfad25862 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Wed, 14 Oct 2015 19:56:14 +0200 >Subject: [PATCH] Bug 14956 - (follow) Validate incoming birth date > >This patch validates the birthdate and resets it to empty if date is not valid. >--- > opac/opac-memberentry.pl | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 22fb843..51f37d5 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -332,13 +332,10 @@ sub ParseCgiForBorrower { > } > } > >- my $dob_dt; >- $dob_dt = eval { dt_from_string( $borrower{'dateofbirth'} ); } >- if ( defined( $borrower{'dateofbirth'} ) ); >- >- $borrower{'dateofbirth'} = output_pref ( { dt => $dob_dt, dateonly => 1, dateformat => 'iso' }) >- if ( $dob_dt ); >- >+ $borrower{'dateofbirth'} = >+ eval { >+ output_pref ( { dt => dt_from_string( $borrower{'dateofbirth'} ) , dateonly => 1, dateformat => 'iso' } ); >+ }; > return %borrower; > } > >-- >1.7.10.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 14956
:
43123
|
43356
|
43357
|
43359
|
43362
|
43408
|
44352
|
44353
|
44518
|
44534
|
44593
|
44594
|
88203
|
88204