Bugzilla – Attachment 38272 Details for
Bug 12633
SQLHelper replacement - C4::Members
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12633: Fix specific default values
Bug-12633-Fix-specific-default-values.patch (text/plain), 1.06 KB, created by
Jonathan Druart
on 2015-04-21 14:51:24 UTC
(
hide
)
Description:
Bug 12633: Fix specific default values
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-04-21 14:51:24 UTC
Size:
1.06 KB
patch
obsolete
>From 05d85a1bc968aba0428488591004401217f756bc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 21 Apr 2015 16:50:12 +0200 >Subject: [PATCH] Bug 12633: Fix specific default values > >The dates should be set to undef if defined but empty, otherwise with an >empty string, '0000-00-00' will be inserted into the DB. >--- > C4/Members.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 433b361..42a56a1 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -670,6 +670,9 @@ sub ModMember { > my $new_borrower = { map { join(' ', @columns) =~ /$_/ ? ( $_ => $data{$_} ) : () } keys(%data) }; > delete $new_borrower->{flags}; > >+ $new_borrower->{dateofbirth} ||= undef if exists $new_borrower->{dateofbirth}; >+ $new_borrower->{dateenrolled} ||= undef if exists $new_borrower->{dateenrolled}; >+ $new_borrower->{dateexpiry} ||= undef if exists $new_borrower->{dateexpiry}; > my $rs = $schema->resultset('Borrower')->search({ > borrowernumber => $new_borrower->{borrowernumber}, > }); >-- >2.1.0
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 12633
:
30115
|
30119
|
30547
|
30937
|
37751
|
38272
|
38284
|
38285
|
38697
|
38698
|
57270