[Bug 43384] New: Errors in CHECKOUT or CHECKIN templates result in error screen in staff client
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43384 Bug ID: 43384 Summary: Errors in CHECKOUT or CHECKIN templates result in error screen in staff client Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: andrew@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: martin.renvoize@openfifth.co.uk Target Milestone: --- To recreate: - have a patron who has an email address and is set to receive both CHECKIN and CHECKOUT notices via email - edit the email templates for both CHECKIN and CHECKOUT notices such that they contain Template Toolkit errors. For example, add "[% IF 1==1 %]" to the notice without a corresponding "[% END %]" - confirm your notice shows an error in the notice edit screen: "file error - parse error - input text line 6: unexpected end of input at /kohadevbox/koha/tools/letter.pl line 211." - check an item out to your patron. On KTD you will end up on an Error Trace screen that repeats the same template error seen above. On a production site you should see a "An error has occurred! Error 500" - reload your patron, see the checkout was successful, despite the errror - check your item again, get another error - reload your patron, see the checkin was successful despite the error -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43384 --- Comment #1 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- The ideal here would be to load the checkout/checkin screen with some sort of clear message to the user that a notice tried and failed to generate. An acceptable short term fix would be to simply let the notice fail quietly. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43384 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org