]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 23 Jun 2021 13:09:55 +0000 (15:09 +0200)
commit7c6575e86a87b40c9a82d17ea928ffea066cefc7
tree10bc8440ad3da60e4341f24a361a404a53565941
parentfdf75e4cb0a0a7b2f2ed8694980f68d4fdc5b922
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>
C4/Letters.pm