[Koha-bugs] [Bug 35957] New: Does Serial module still allow saving 0000-00-00 in database?
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jan 31 13:53:58 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35957
Bug ID: 35957
Summary: Does Serial module still allow saving 0000-00-00 in
database?
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Serials
Assignee: koha-bugs at lists.koha-community.org
Reporter: m.de.rooy at rijksmuseum.nl
QA Contact: testopia at bugs.koha-community.org
Seeing two issues in 22.11 with invalid/empty date fields:
[1] Exception 'Koha::Exceptions::WrongParameter' thrown 'Invalid date
'00-1-11-30' passed to output_pref'
Crash in output_pref comes from serials/subscription-add.pl line 405
$nextacquidate = $nextacquidate
? output_pref( { str => $nextacquidate, dateonly => 1, dateformat =>
'iso' } )
: $firstacquidate;
So it received a 0000-00-00.
[2] Receive step on serial collection. Save issue without filling dates:
| 9531 | 156662 | 318 | No. 12 | 11 | 0
| 0 | 1 | 0000-00-00 | | 0000-00-00 |
| NULL | 0 | NULL |
Planned and publisheddate were NULL but are now 0000-00-00.
Did not check master. Probably still the same?
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list