Bugzilla – Attachment 128217 Details for
Bug 29393
Ability to send emails from patron details page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29393 - add a dedicated letters module for add message
Bug-29393---add-a-dedicated-letters-module-for-add.patch (text/plain), 3.91 KB, created by
Alex Arnaud
on 2021-12-03 14:01:09 UTC
(
hide
)
Description:
Bug 29393 - add a dedicated letters module for add message
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2021-12-03 14:01:09 UTC
Size:
3.91 KB
patch
obsolete
>From 7b004d071ae05ab8a979420c96f29a2f9a6d953e Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Wed, 10 Nov 2021 11:34:17 +0100 >Subject: [PATCH] Bug 29393 - add a dedicated letters module for add message > >Sponsored-by: Aix-Marseille University >--- > circ/add_message.pl | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 7 +++++++ > 3 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/circ/add_message.pl b/circ/add_message.pl >index 43ffcd4..e9a95cf 100755 >--- a/circ/add_message.pl >+++ b/circ/add_message.pl >@@ -66,7 +66,7 @@ if ( $message_type eq 'E' ) { > > if ( $letter_code ) { > $letter = C4::Letters::GetPreparedLetter( >- module => 'members', >+ module => 'add_message', > letter_code => $letter_code, > lang => $patron->lang, > tables => { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >index e70a0ca..37b0011 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -119,7 +119,7 @@ > </div> > [% END %] > >- [% patron_letters = NoticeTemplates.GetByModule( 'members' ) %] >+ [% patron_letters = NoticeTemplates.GetByModule( 'add_message' ) %] > [% IF patron_letters %] > <div class="form-group"> > <label for="select_patron_notice" style="display:none;">Patron notice: </label> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index f2337e3..79cac9c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -152,6 +152,7 @@ > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=serial">Serials (new issue)</a></li> > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=suggestions">Suggestions</a></li> > <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=pos">Point of sale</a></li> >+ <li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=add_message">Add message</a></li> > </ul> > </div> > </div> <!-- /#toolbar --> >@@ -208,6 +209,7 @@ > [% CASE 'serial' %]<span>Serials (new issue)</span> > [% CASE 'suggestions' %]<span>Suggestions</span> > [% CASE 'pos' %]<span>Point of sale</span> >+ [% CASE 'add_message' %]<span>Add message</span> > [% CASE %]<span>[% lette.module | html %]</span> > [% END %] > </td> >@@ -377,6 +379,11 @@ > [% ELSE %] > <option value="pos">Point of sale</option> > [% END %] >+ [% IF ( module == "add_message" ) %] >+ <option value="add_message" selected="selected">Add message</option> >+ [% ELSE %] >+ <option value="add_message">Add message</option> >+ [% END %] > </select> > </li> > <li> >-- >2.7.4
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 29393
:
127237
|
127238
|
127452
|
127506
|
127511
|
127847
|
128215
|
128216
|
128217
|
128218
|
128219
|
128363
|
148187
|
148188
|
148189
|
148190
|
148191
|
148192
|
148193
|
148194
|
149812
|
160107
|
160108
|
160109
|
160110
|
160111
|
160112
|
160113
|
160114
|
160633
|
160638
|
160639
|
165498
|
165499
|
165500
|
165501
|
165502
|
165503
|
165504
|
165505
|
165511
|
165512
|
165513
|
165514
|
165515
|
165516
|
165517
|
165518
|
165519
|
165520
|
165521
|
165522
|
165942