Bug 21052 - New patron card printer profile won't save if paper bin is empty
Summary: New patron card printer profile won't save if paper bin is empty
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:
: 22460 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-07-09 08:57 UTC by Katrin Fischer
Modified: 2019-03-06 13:45 UTC (History)
1 user (show)

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 2018-07-09 08:57:04 UTC
When adding a new printer profile in the patron card creator tool, you can save without entering a paper bin, but it will not create a new entry in the database. There is no error, the field is not marked as required.

To test:
- Add a new printer profile
- Fill in description, leave other fields unchanged
- Save
- Verify that the new printer profile doesn't appear in the list and hasn't been created
Comment 1 Jonathan Druart 2018-07-11 22:04:32 UTC
Same for other labels/* forms

In the logs:

Database returned the following error on attempted INSERT: Duplicate entry 'DEFAULT PRINTER-0-Tray 1-Labels' for key 'printername' at /home/vagrant/kohaclone/C4/Creators/Profile.pm line 164.

 or

profile_id is currently undefined. at /home/vagrant/kohaclone/C4/Creators/Profile.pm line 184.
Comment 2 Katrin Fischer 2018-07-12 05:24:17 UTC
We've also managed to create a template that takes up 100% CPU and brings down Koha when trying to print a PDF. But so far have not been able to figure out how to reproduce it on another system. There are some serious issues with the forms not checking for good input.
Comment 3 Katrin Fischer 2019-03-06 13:44:03 UTC
*** Bug 22460 has been marked as a duplicate of this bug. ***
Comment 4 Katrin Fischer 2019-03-06 13:45:01 UTC
(In reply to Katrin Fischer from comment #2)
> We've also managed to create a template that takes up 100% CPU and brings
> down Koha when trying to print a PDF. But so far have not been able to
> figure out how to reproduce it on another system. There are some serious
> issues with the forms not checking for good input.

We filed bug 22462 for this.