[Koha-bugs] [Bug 34731] C4::Letters::SendQueuedMessages can be triggered with an undef message_id

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 7 18:48:46 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34731

--- Comment #4 from Kyle M Hall <kyle at bywatersolutions.com> ---
We have found a way to recreate this bug. If you update the PASSWORD_CHANGE
letter to something like:
[%- IF 0 %][% END %]
or anything else that would generate a notice, Koha attempts to enqueue the
blank notice in Koha::Patron::set_password, but EnqueueLetter returns if the
rendered content is empty. Then we call SendQueuedMessages with message_id =>
undef!

This patch set will resolve this issue for the affected code and prevent any
regressions.

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


More information about the Koha-bugs mailing list