Bug 17034

Summary: Creating a new patron fails due to DB error
Product: Koha Reporter: Adam Goforth <code>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: f.demians, gmcharlt, julian.maurice, kyle.m.hall, mirko
Version: 16.05   
Hardware: All   
OS: Linux   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 16917    
Bug Blocks:    

Description Adam Goforth 2016-08-02 21:42:50 UTC
After upgrading from Koha 16.05.01 to 16.05.02 with the Debian package, creating a new patron via the web interface fails. After filling out and submitting the form at /cgi-bin/koha/members/memberentry.pl?op=add&categorycode=OP this error is displayed:

DBIx::Class::Row::store_column(): No such column 'checkprevcheckout' on Koha::Schema::Result::Borrower at /usr/share/koha/lib/C4/Members.pm line 731

It seems that the problem is in line 727 of Members.pm:

$new_member->{checkprevcheckout} ||= 'inherit';

Commenting out this line allows the patron creation to finish normally.

The issue seems to be that the column "checkprevcheckout" does not exist in the borrowers table and should not exist in this version of Koha. Apparently it was added to master in bug 6906, and it shouldn't be in a public release until Koha 16.11.

Koha version: 16.05.02.000
OS: Debian 8.5
Comment 1 Katrin Fischer 2016-08-02 21:54:31 UTC
It seems the column was introduced to the categories table by bug 6906 and should not appear in 16.05 - maybe it slipped in somehow with another patch/rebase?
Comment 2 Chris Cormack 2016-08-02 21:56:03 UTC
This bug was caused by commit 878402689eb652b09bed0d4f2c7e458d5c5493f4

I think we need to revert this out on 16.05.x
Comment 3 Frédéric Demians 2016-08-03 06:26:33 UTC
Bug 16917 reverted on 16.05 branch.
Comment 4 Mirko Tietgen 2016-08-03 08:17:12 UTC
I already uploaded a new Debian package last night without the patch.