]> git.koha-community.org Git - koha.git/commit
Bug 28581: (QA follow-up) Prevent code failure
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 17 Jun 2021 13:12:23 +0000 (14:12 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Jul 2021 13:05:48 +0000 (09:05 -0400)
commitf0e2fc04f3713e2494b2a8aad84b719e45b21765
treec95c78f351f79abdc82eec9020e64e33e8ea7ec9
parent17ac49efaf66a7b92637a2e8cbc1da2d28e49603
Bug 28581: (QA follow-up) Prevent code failure

This patch prevents a fatal error when both $params->{from} and
$params->{borrowernumber} are undefined. We fallback to
KohaAdminEmailAddress before finally falling through to setting a
failure status for the message if that last fallback is not found.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Letters.pm