Bug 16887 - Entering a bad date in 'Koha out on loan' field sets items.onloan to 0000-00-00.
Summary: Entering a bad date in 'Koha out on loan' field sets items.onloan to 0000-00-00.
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-08 21:22 UTC by Barton Chittenden
Modified: 2020-11-30 21:45 UTC (History)
2 users (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 Barton Chittenden 2016-07-08 21:22:57 UTC
To re-create

1/ Go to Circulation->Fast Cataloging
2/ Add a biblio record
3/ On Add Items screen, enter a space in 'Koha out on loan' (and enter item type of course). Save the item.
4/ items.onloan will be set to 0000-00-00.

... I'm not certain whether or not this is specific to the fast add framework.

Note that this causes upstream issues with search -- any item that has items.onloan set to 0000-00-00 will cause an internal server error on the search results page, with the following error in plack.error.log:

Can't locate object method "ymd" via package "dateonly" (perhaps you forgot to load "dateonly"?) at /usr/share/koha/li
b/Koha/DateUtils.pm line 223.
Comment 1 Jonathan Druart 2019-11-28 11:01:16 UTC
"Koha out on loan" does not longer exist, I have tried to put space in a date field and I do get a crash. Assuming this is fixed.