Bugzilla – Attachment 148190 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-m.patch (text/plain), 3.96 KB, created by
Fridolin Somers
on 2023-03-14 20:43:31 UTC
(
hide
)
Description:
Bug 29393: Add a dedicated letters module for add message
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2023-03-14 20:43:31 UTC
Size:
3.96 KB
patch
obsolete
>From 7ed4042c8d7b9739ffe701eee4b7edb14eb22ce7 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 > >--- > circ/add_message.pl | 2 +- > .../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 43ffcd43cf..e9a95cfd4a 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 d4e4eee990..d04829f298 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -138,7 +138,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 1dc23f228e..5fc92400bf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -179,6 +179,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 --> >@@ -236,6 +237,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> >@@ -406,6 +408,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.39.0
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