Bug 9873

Summary: Quiet errors in the log from XSLT.pm
Product: Koha Reporter: Owen Leonard <oleonard>
Component: Staff ClientAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P5 - low CC: chris, gmcharlt
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 9873 - Quiet errors in the log from XSLT.pm
Bug 9873 - Quiet errors in the log from XSLT.pm
[PASSED QA] Bug 9873 - Quiet errors in the log from XSLT.pm

Description Owen Leonard 2013-03-20 14:58:30 UTC
If XSLTResultsDisplay is enabled errors can appear in the staff client log complaining "Use of uninitialized value in hash element at C4/XSLT.pm line 282.
Comment 1 Owen Leonard 2013-03-20 15:05:43 UTC Comment hidden (obsolete)
Comment 2 Chris Cormack 2013-03-29 09:54:01 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2013-03-30 23:11:27 UTC
Created attachment 17067 [details] [review]
[PASSED QA] Bug 9873 - Quiet errors in the log from XSLT.pm

If XSLTResultsDisplay is enabled and items in your search results lack a
shelving location or a ccode errors will appear in the log complaining
of "uninitialized value in hash element." This patch adds a check on
these values to quiet the errors.

To test, find or create a record with items which have no shelving
location and/or no collection code. Perform a search the results for
which will include your record. Check for errors in the log.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Cleans up logs for result list quite a bit.
Passes all tests and QA script.
Comment 4 Jared Camins-Esakov 2013-03-31 00:37:34 UTC
This patch has been pushed to master.
Comment 5 Chris Cormack 2013-04-24 21:29:20 UTC
This doesn't apply to 3.10.x please send a new patch if you wish it back ported