Bugzilla – Attachment 181107 Details for
Bug 30301
Add a system preference to allow specifying the patron expiration notices as mandatory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30301: Restore check for mandatory notice
Bug-30301-Restore-check-for-mandatory-notice.patch (text/plain), 1.06 KB, created by
Matt Blenkinsop
on 2025-04-17 15:23:15 UTC
(
hide
)
Description:
Bug 30301: Restore check for mandatory notice
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-04-17 15:23:15 UTC
Size:
1.06 KB
patch
obsolete
>From 25d68bee972a2aaa402baea6672645fccb725991 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >Date: Thu, 17 Apr 2025 15:41:09 +0100 >Subject: [PATCH] Bug 30301: Restore check for mandatory notice > >--- > misc/cronjobs/membership_expiry.pl | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/misc/cronjobs/membership_expiry.pl b/misc/cronjobs/membership_expiry.pl >index cef5ef6720c..043e4dcdb97 100755 >--- a/misc/cronjobs/membership_expiry.pl >+++ b/misc/cronjobs/membership_expiry.pl >@@ -291,6 +291,12 @@ while ( my $expiring_patron = $upcoming_mem_expires->next ) { > message_name => 'Patron_Expiry', > }; > >+ my $is_notice_mandatory = grep( $expiring_patron->categorycode, @mandatory_expiry_notice_categories ); >+ if ($is_notice_mandatory) { >+ $sending_params->{expiry_notice_mandatory} = 1; >+ $sending_params->{primary_contact_method} = $expiring_patron->primary_contact_method; >+ } >+ > my $result = $expiring_patron->queue_notice($sending_params); > $count_enqueued++ if $result->{sent}; > } >-- >2.48.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30301
:
175086
|
175087
|
175088
|
175089
|
175526
|
175527
|
175528
|
175529
|
181102
|
181103
|
181104
|
181105
|
181106
|
181107
|
181108
|
182152
|
182153
|
182154
|
182155
|
182156
|
182157
|
182158
|
182527
|
182529
|
182530
|
182531
|
182532
|
182533
|
182534
|
182535
|
182536
|
182537
|
182538