Bug 35279: Add fallback to print for 'Send welcome email'
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 7 Nov 2023 14:03:00 +0000 (14:03 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 22 Mar 2024 14:47:36 +0000 (15:47 +0100)
commitd0c8c8796c84eb8e950b0b24162a4baec8e89dca
treee2e0e917b6b6419255d1195431bc92f917c96313
parent2ad4c93cdcfb5605bee4165b7d6037f8587c7d7c
Bug 35279: Add fallback to print for 'Send welcome email'

We update the 'Send welcome email' button to read 'Send welcome notice'
and add a fallback to enqueue a notice for print when the user doesn't
have an email address defined.

Test plan
1) Apply patch
2) Use the 'Henry Acevedo' user who doesn't yet have a valid email
   address.
3) Click the 'Send welcome notice' button available from the 'more'
   menu.
4) Note that no notice is queued at all.
5) Copy the content of the 'email' WELCOME notice into the 'print'
   template.
5) Repeat step 3.
6) Note that this time a 'print' type notice is queued for the user.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc
members/notices.pl