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)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 11 Oct 2016 16:28:43 +0000 (16:28 +0000)
commit17e2e6c994655aaa927b2579524022a4f24a8d1d
tree931f216ec876186254df9d11ec077f74cecb3e26
parentff495c5fa8c58a7762b3494e97d90618d649f7a8
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>
C4/Letters.pm
t/db_dependent/Letters.t