Bugzilla – Attachment 132785 Details for
Bug 30237
Rename/rephrase AutoEmailOpacUser/ACCTDETAILS feature to clarify intended use
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30237: Replace ACCDETAILS notice with WELCOME notice
Bug-30237-Replace-ACCDETAILS-notice-with-WELCOME-n.patch (text/plain), 4.15 KB, created by
Kyle M Hall (khall)
on 2022-03-31 14:57:01 UTC
(
hide
)
Description:
Bug 30237: Replace ACCDETAILS notice with WELCOME notice
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-03-31 14:57:01 UTC
Size:
4.15 KB
patch
obsolete
>From 503c6ceecdb30fcb041fef9be4728b90be05c9fa Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 8 Mar 2022 16:01:44 +0000 >Subject: [PATCH] Bug 30237: Replace ACCDETAILS notice with WELCOME notice > >This patch drops the ACCDETAILS notice in preference to a new WELCOME >notice. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../data/mysql/atomicupdate/bug_30237.pl | 13 ++++++ > .../mysql/en/mandatory/sample_notices.yml | 43 +++++++++---------- > 2 files changed, 33 insertions(+), 23 deletions(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_30237.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30237.pl b/installer/data/mysql/atomicupdate/bug_30237.pl >new file mode 100644 >index 0000000000..9f33af64b2 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30237.pl >@@ -0,0 +1,13 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "30237", >+ description => "Replace ACCDETAILS notice with WELCOME notice", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Add WELCOME notice >+ $dbh->do( q{ >+ INSERT IGNORE INTO letter (module, code, name, is_html, title, content, message_transport_type) VALUES ('members', 'WELCOME', 'Welcome notice', 1, '[% USE Koha %]Welcome to [% Koha.Preference('LibraryName') %]', "[% USE Koha %]\r\nHello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %].\r\n\r\nThankyou for joining [% Koha.Preference('LibraryName') %]\r\n\r\nThe library's catalog can be found <a href='[% Koha.Preference('OPACBaseURL') %]'>here</a>.\r\n\r\nYour library card number is [% borrower.cardnumber %]\r\n\r\nIf you have any problems or questions regarding your account, please contact your Koha Administrator.", 'email');}); >+ }, >+}; >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 0af93cd37b..e286083d67 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -948,29 +948,6 @@ tables: > - "[% branch.branchillemail %]" > - "[% branch.branchemail %]" > >- - module: members >- code: ACCTDETAILS >- branchcode: "" >- name: "Account details template - DEFAULT" >- is_html: 0 >- title: "Your new Koha account details." >- message_transport_type: email >- lang: default >- content: >- - "Hello <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>." >- - "" >- - "Your new Koha account details are:" >- - "" >- - "User: <<borrowers.userid>>" >- - "" >- - "If you have any problems or questions regarding your account, please contact your Koha Administrator." >- - "" >- - "If you do not have your account password, please contact your Koha Administrator." >- - "" >- - "Thank you," >- - "Koha Administrator" >- - "kohaadmin@yoursite.org" >- > - module: members > code: DISCHARGE > branchcode: "" >@@ -1086,6 +1063,26 @@ tables: > - "" > - "Your library." > >+ - module: members >+ code: WELCOME >+ branchcode: "" >+ name: "Welcome notice " >+ is_html: 1 >+ title: "[% USE Koha %]Welcome to [% Koha.Preference('LibraryName') %]" >+ message_transport_type: email >+ lang: default >+ content: >+ - "[% USE Koha %]" >+ - "Hello [% borrower.title %] [% borrower.firstname %] [% borrower.surname %]." >+ - "" >+ - "Thankyou for joining [% Koha.Preference('LibraryName') %]" >+ - "" >+ - "The library's catalog can be found <a href='[% Koha.Preference('OPACBaseURL') %]'>here</a>." >+ - "" >+ - "Your library card number is [% borrower.cardnumber %]" >+ - "" >+ - "If you have any problems or questions regarding your account, please contact your Koha Administrator." >+ > - module: orderacquisition > code: ACQORDER > branchcode: "" >-- >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 30237
:
131489
|
131490
|
131491
|
132785
|
132786
|
132787
|
133153
|
133154
|
133155
|
133156
|
133157
|
133158
|
133159
|
133345
|
133346
|
133347
|
133348
|
133349
|
133350
|
133351
|
133352