Bugzilla – Attachment 53378 Details for
Bug 16917
Error when importing patrons, Column 'checkprevcheckout' cannot be null
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16917 - Error when importing patrons, Column 'checkprevcheckout' cannot be null
Bug-16917---Error-when-importing-patrons-Column-ch.patch (text/plain), 1.03 KB, created by
Kyle M Hall (khall)
on 2016-07-13 15:43:10 UTC
(
hide
)
Description:
Bug 16917 - Error when importing patrons, Column 'checkprevcheckout' cannot be null
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-07-13 15:43:10 UTC
Size:
1.03 KB
patch
obsolete
>From 445a743a86dd6057cbd31cb535f90100cbf7b71c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 13 Jul 2016 15:41:30 +0000 >Subject: [PATCH] Bug 16917 - Error when importing patrons, Column > 'checkprevcheckout' cannot be null > >Error: >DBIx::Class::Storage::DBI::_dbh_execute(): Column 'checkprevcheckout' >cannot be null at C4/Members.pm line 697 > >Test Plan: >1) Attempt to import a patron via csv >2) Note the error >3) Apply this patch >4) Repeat the import >5) No error! >--- > C4/Members.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 94afe40..f025a9e 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -691,6 +691,7 @@ sub AddMember { > # get only the columns of Borrower > my @columns = $schema->source('Borrower')->columns; > my $new_member = { map { join(' ',@columns) =~ /$_/ ? ( $_ => $data{$_} ) : () } keys(%data) } ; >+ $new_member->{checkprevcheckout} ||= 'inherit'; > delete $new_member->{borrowernumber}; > > my $rs = $schema->resultset('Borrower'); >-- >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 16917
:
53378
|
53398
|
53405
|
53412