Bugzilla – Attachment 132909 Details for
Bug 29005
Add option to send WELCOME notice for new patrons added via patron imports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29005: Add support for the command line script
Bug-29005-Add-support-for-the-command-line-script.patch (text/plain), 1.88 KB, created by
Katrin Fischer
on 2022-04-03 10:02:44 UTC
(
hide
)
Description:
Bug 29005: Add support for the command line script
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-04-03 10:02:44 UTC
Size:
1.88 KB
patch
obsolete
>From 807f4b49f9ca64cf0aba25e6b41ad9e01a968944 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 2 Mar 2022 13:41:16 +0000 >Subject: [PATCH] Bug 29005: Add support for the command line script > >This patch adds welcome email for new users support to the command line >patron import tool. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > misc/import_patrons.pl | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/misc/import_patrons.pl b/misc/import_patrons.pl >index 85f7983cab..19b0ffab3f 100755 >--- a/misc/import_patrons.pl >+++ b/misc/import_patrons.pl >@@ -30,6 +30,7 @@ my $csv_file; > my $matchpoint; > my $overwrite_cardnumber; > my $overwrite_passwords; >+my $welcome_new = 0; > my %defaults; > my $ext_preserve = 0; > my $confirm; >@@ -44,6 +45,7 @@ GetOptions( > 'd|default=s' => \%defaults, > 'o|overwrite' => \$overwrite_cardnumber, > 'op|overwrite_passwords' => \$overwrite_passwords, >+ 'en|email-new' => \$welcome_new, > 'p|preserve-extended-attributes' => \$ext_preserve, > 'pf|preserve-field=s' => \@preserve_fields, > 'v|verbose+' => \$verbose, >@@ -68,6 +70,7 @@ my $return = $Import->import_patrons( > overwrite_passwords => $overwrite_passwords, > preserve_extended_attributes => $ext_preserve, > preserve_fields => \@preserve_fields, >+ send_welcome => $welcome_new, > dry_run => !$confirm, > } > ); >@@ -145,6 +148,10 @@ Overwrite existing patrons with new data if a match is found > > Retain extended patron attributes for existing patrons being overwritten > >+=item B<-en|--email-new> >+ >+Send the ACCTDETAILS welcome email to new users >+ > =item B<-v|--verbose> > > Be verbose >-- >2.30.2
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 29005
:
125598
|
126039
|
126040
|
131246
|
131247
|
131248
|
131249
|
131250
|
131251
|
131252
|
131253
|
131254
|
132782
|
132783
|
132784
| 132909 |
132910