Bug 22266 - Make layout name for patron card layouts a required field to avoid db error
Summary: Make layout name for patron card layouts a required field to avoid db error
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Chris Nighswonger
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-03 11:37 UTC by Katrin Fischer
Modified: 2019-02-03 11:38 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2019-02-03 11:37:46 UTC
When creating a new patron card layout the layout name is not a required field, but the layout won't save if it's left empty. 

There will also be an error in the log:

Database returned the following error: Column 'layout_name' cannot be null at /home/vagrant/kohaclone/C4/Creators/Layout.pm line 183.
Manage interface called an unsupported operation: save at /home/vagrant/kohaclone/patroncards/manage.pl line 103.