Bug 22266

Summary: Make layout name for patron card layouts a required field to avoid db error
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Label/patron card printingAssignee: Chris Nighswonger <cnighswonger>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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.