Internal server error on viewing full record when copy create_date is null
Bug #1418772 reported by
Jeff Davis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned | ||
2.6 |
Fix Released
|
Undecided
|
Unassigned | ||
2.7 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I've confirmed this issue in both 2.6 and master, using the XUL client. I haven't confirmed it with the web-based client, but I expect the issue to exist there too.
Steps to replicate:
1. Set create_date to NULL for a record in asset.copy.
2. In the staff client, attempt to view the bib record that your example item is attached to. Instead of seeing the record, you'll get an Internal Server Error.
The issue is that the parse_datetime function in EGCatLoader/Util.pm can't handle an undefined date. It's unnatural for asset.copy.
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've pushed a fix to working branch user/jeffdavis/ lp1418772_ error_on_ null_create_ date:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=commitdif f;h=a400928
This fixes the issue in master, but the fix may not apply cleanly to earlier versions of EG, since copy_table.tt2 has changed since 2.6.