[Koha-bugs] [Bug 12923] Improve error logging for advance_notices.pl; Show borrowernumber when no letter of type is found and force utf8 output.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 15 17:16:41 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12923

Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #31615|0                           |1
        is obsolete|                            |

--- Comment #3 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 34441
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34441&action=edit
Bug 12923 - Improve error logging for advance_notices.pl; Show borrowernumber
when no letter of type is found and force utf8 output.

when running advance_notices.pl with -n flag, diacritics run awol in the
console output!

Also when debugging which borrower requests undefined letter templates, it is
very handy to log the
borrowernumber so we catch and fix bad borrower message transport settings.

This patch fixes those issues.

TEST PREPARATION:

0. Edit the ODUEDGST letter, find an undefined letter for any trasport type.

::TESTS ARE (ALMOST) THE SAME AS IN bugg 12922::
TEST PLAN:

1. Find a borrower and from the messaging preferences set the "Advance notice"
transport type to
   the undefined digest. Set the "Days in Advance" to 1.
2. Check-out something for that borrower and set the due date for tomorrow.
3. Run "misc/cronjobs/advance_notices.pl -c -n -v" from the terminal.
4. BEFORE THIS PATCH: You get an error
   "no letter of type 'PREDUEDGST' found. Please see sample_notices.sql at
./advance_notices.pl line 366."
4. AFTER THIS PATCH: You get an error
   "no letter of type 'PREDUEDGST' found for borrowernumber 1104659. Please see
sample_notices.sql at
   ./advance_notices.pl line 368."
   Makes life more worth living for!
   Also diacritics printed on screen are displayed properly.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list