]> git.koha-community.org Git - koha.git/commit
Bug 17441: [QA Follow-up] Return value of SendAlerts
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 14 Oct 2016 09:07:49 +0000 (11:07 +0200)
committerFrédéric Demians <f.demians@tamil.fr>
Sat, 22 Oct 2016 12:55:21 +0000 (14:55 +0200)
commit18a472e627e8f8b7cec45ffe90f896374d90fb9d
tree169a20378ba9b683e232dcb0eaa2b245f32ba184
parent4ee9399028fda3f5b8cfbfd9c43eb50349569e91
Bug 17441: [QA Follow-up] Return value of SendAlerts

This patch makes the return value of SendAlerts more consistent.
It returns 1 on success, or undef || { error => 'msg' } on failure.
Needed to adjust one test in Letters.t too.
Adjusted one typo along the way (seleted).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested by running Letters.t.
Also tested SendAlerts from the interface with AutoEmailOpacUser and
memberentry (adding new patron).

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 17e2e6c994655aaa927b2579524022a4f24a8d1d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/Letters.pm
t/db_dependent/Letters.t