| Summary: | Creating a new patron fails due to DB error | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Adam Goforth <code> |
| Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
| Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
| Severity: | major | ||
| Priority: | P5 - low | CC: | f.demians, gmcharlt, julian.maurice, kyle, mirko |
| Version: | 16.05 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | 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: | |||
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? This bug was caused by commit 878402689eb652b09bed0d4f2c7e458d5c5493f4 I think we need to revert this out on 16.05.x I already uploaded a new Debian package last night without the patch. |
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