Bug 29818 - Cannot save subscription frequency or numbering pattering without display order
Summary: Cannot save subscription frequency or numbering pattering without display order
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Serials (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-07 13:34 UTC by Andrew Fuerste-Henry
Modified: 2022-01-08 21:45 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 Andrew Fuerste-Henry 2022-01-07 13:34:49 UTC
To recreate:
1 - Go to Manage Frequencies (/cgi-bin/koha/serials/subscription-frequencies.pl)
2 - create a new frequency, don't enter a value for display order
3 - try to save, get an error:
C4::Serials::Frequency::AddSubscriptionFrequency(): DBI Exception: DBD::mysql::st execute failed: Incorrect integer value: '' for column 'displayorder' at row 1 at /kohadevbox/koha/serials/subscription-frequencies.pl line 89
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77
Comment 1 Katrin Fischer 2022-01-08 21:45:16 UTC
Confirmed on master. Same issue for numbering patterns without display order.

I have also tested on 20.11 and there it's possible to save the entries with the display order being empty. So something must have changed and the field should not be mandatory or cause such an ugly error.