]> git.koha-community.org Git - koha.git/commit
Bug 15842 - Cannot import patrons if the csv file does not contain privacy_guarantor_...
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 15 Feb 2016 12:58:14 +0000 (12:58 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 2 Mar 2016 00:52:01 +0000 (00:52 +0000)
commit361c1e987c2e78366536ca00001c3b43f700e1ff
tree534686be03dd8551345e9a9e5747a80e3a92a136
parente3bf39b4bc9e81c1304abb3293a5367582bd58d9
Bug 15842 - Cannot import patrons if the csv file does not contain privacy_guarantor_checkouts

When importing patrons with a csv file which does not contain the privacy_guarantor_checkouts column in the header, you will get
DBIx::Class::Storage::DBI::_dbh_execute(): Column 'privacy_guarantor_checkouts' cannot be null at /home/koha/src/C4/Members.pm line 768

The same issue seems to occur for sms_provider_id.

Test Plan:
1) Attempt to import patron csv file with no privacy_guarantor_checkouts column
2) Note the error
3) Apply this patch
4) Repeat step 1
5) The error should no longer occur

NOTE: While this patch does work, should it be solved only
at this level? The issue that there is the lack of those two
fields on the tools screen still exists.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
C4/Members.pm