Bug 30222: Further simplify logic
authorNick Clemens <nick@bywatersolutions.com>
Tue, 15 Mar 2022 13:34:39 +0000 (13:34 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 4 Apr 2022 14:23:45 +0000 (16:23 +0200)
commitbb5827ba792535a99ab7935c5fee93f3ddd3b96f
treefa58d326c45a2bd785fd53bf1370d44f68098908
parent3e4f9cd578f54a162c72137a4ad2bd4948b6b3d9
Bug 30222: Further simplify logic

For any borrower, we are either:
1 - following their preference, and that should set 'wants_email'
OR
2 - Never sending / following the cron, and can determine 'wants_email'
    from the 'send_notices' variable

This patch adds an 'else' if not using preferences to accomplish this

Follow test plan on previous patches

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/automatic_renewals.pl