Summary: | bibs with comments show an error in opac | ||
---|---|---|---|
Product: | Koha | Reporter: | Nicole C. Engard <nengard> |
Component: | Tools | Assignee: | Kyle M Hall <kyle.m.hall> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | P5 - low | CC: | 1joynelson, chris, koha.sekjal, kyle.m.hall, paul.poulain, tdavis |
Version: | 3.8 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 8035 - bibs with comments show an error in opac
[SIGNED-OFF] Bug 8035 - bibs with comments show an error in opac Bug 8035 - bibs with comments show an error in opac |
Description
Nicole C. Engard
2012-05-01 13:20:05 UTC
Created attachment 9452 [details] [review] Bug 8035 - bibs with comments show an error in opac If a record has any approved comments, viewing the record details in the opac will error out with the following message: Undefined subroutine &main::format_date called at /home/load02/kohaclone/opac/opac-detail.pl line 654. This is caused by a use of C4::Dates::format_date without adding a use call to the head of the file. One line fix, adds 'use C4::Dates qw(format_date);' to the head of the file. Created attachment 9453 [details] [review] [SIGNED-OFF] Bug 8035 - bibs with comments show an error in opac If a record has any approved comments, viewing the record details in the opac will error out with the following message: Undefined subroutine &main::format_date called at /home/load02/kohaclone/opac/opac-detail.pl line 654. This is caused by a use of C4::Dates::format_date without adding a use call to the head of the file. One line fix, adds 'use C4::Dates qw(format_date);' to the head of the file. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> This patch looks/works fine. I hate to remove a pass but I was talk to chris about this patch earlier and it actually needs to use this:http://wiki.koha-community.org/wiki/Coding_Guidelines#Displaying_dates This should make the transition easier when we migrate to Koha::Dates giving us a single point of switching. The line that should actually be corrected is the line calling format_date should be removed and the date should be formatted in the template. Created attachment 9471 [details] [review] Bug 8035 - bibs with comments show an error in opac If a record has any approved comments, viewing the record details in the opac will error out with the following message: Undefined subroutine &main::format_date called at /home/load02/kohaclone/opac/opac-detail.pl line 654. This is caused by a use of C4::Dates::format_date without adding a use call to the head of the file. Removing the call is the only change necessary. The dates are already being filtered by $KohaDates. Removes bad subroutine call to no-longer-included module. Marking Passed QA. This will be in 3.8.1 Please don't forget to add your sign off if you sign off, this one only has pauls signoff on it (now mine) |