Bugzilla – Attachment 160109 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), 4.10 KB, created by
Martin Renvoize
on 2023-12-20 12:37:40 UTC
(
hide
)
Description:
Bug 29393: Add a dedicated letters module for add message
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2023-12-20 12:37:40 UTC
Size:
4.10 KB
patch
obsolete
>From 4443a43e5705dd5db4f80ed9a047fce170c1b4e4 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 | 3 +-- > .../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(+), 3 deletions(-) > >diff --git a/circ/add_message.pl b/circ/add_message.pl >index 468a37fbc0d..9eacdfc0a06 100755 >--- a/circ/add_message.pl >+++ b/circ/add_message.pl >@@ -60,7 +60,6 @@ else { > message => $borrower_message, > } > )->store; >- > } > > if ( $message_type eq 'E' ) { >@@ -73,7 +72,7 @@ else { > > 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 3513593a24c..e4a999a3a1f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -146,7 +146,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 c3d24871783..e53d446a4dd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -174,6 +174,7 @@ > <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=report">Reports</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 --> >@@ -234,6 +235,7 @@ > [% CASE 'suggestions' %]<span>Suggestions</span> > [% CASE 'pos' %]<span>Point of sale</span> > [% CASE 'report' %]<span>Reports</span> >+ [% CASE 'add_message' %]<span>Add message</span> > [% CASE %]<span>[% lette.module | html %]</span> > [% END %] > </td> >@@ -425,6 +427,11 @@ > [% ELSE %] > <option value="report">Reports</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.43.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