Bug 35279 - Add fallback for WELCOME notice to allow 'print' when patrons are missing email address
Summary: Add fallback for WELCOME notice to allow 'print' when patrons are missing ema...
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Martin Renvoize (ashimema)
QA Contact: Testopia
URL:
Keywords: Sandbox
Depends on:
Blocks: 38087
  Show dependency treegraph
 
Reported: 2023-11-07 14:06 UTC by Martin Renvoize (ashimema)
Modified: 2024-10-04 06:41 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00
Circulation function:


Attachments
Bug 35279: Add fallback to print for 'Send welcome email' (2.98 KB, patch)
2023-11-07 14:12 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 35279: Add fallback to print for 'Send welcome email' (2.99 KB, patch)
2023-11-07 14:33 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 35279: Add fallback to print for 'Send welcome email' (3.03 KB, patch)
2023-11-07 17:37 UTC, David Nind
Details | Diff | Splinter Review
Bug 35279: Add fallback to print for 'Send welcome email' (3.09 KB, patch)
2024-01-26 17:42 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize (ashimema) 2023-11-07 14:06:32 UTC
When testing bug 34704 I realised it's not especially trivial to trigger a print notice to be generated.  I think it's a good idea to allow fallback to print for the WELCOME notice when calling 'Send welcome email' from the patrons profile.
Comment 1 Martin Renvoize (ashimema) 2023-11-07 14:12:12 UTC Comment hidden (obsolete)
Comment 2 Martin Renvoize (ashimema) 2023-11-07 14:33:52 UTC
Created attachment 158601 [details] [review]
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.
Comment 3 David Nind 2023-11-07 17:37:36 UTC
Created attachment 158612 [details] [review]
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>
Comment 4 Kyle M Hall (khall) 2024-01-26 17:42:52 UTC
Created attachment 161547 [details] [review]
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>
Comment 5 Katrin Fischer 2024-03-22 14:48:15 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 6 Fridolin Somers 2024-05-23 08:26:49 UTC
Not backported to 23.11.x