Bugzilla – Attachment 27498 Details for
Bug 10832
Multi transport types for overdue notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10832: Add the MTT in the warn message
Bug-10832-Add-the-MTT-in-the-warn-message.patch (text/plain), 1.14 KB, created by
Jonathan Druart
on 2014-04-23 15:36:57 UTC
(
hide
)
Description:
Bug 10832: Add the MTT in the warn message
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-04-23 15:36:57 UTC
Size:
1.14 KB
patch
obsolete
>From e022392e49b0c3c91eb3c05f1b48b9882aca8b0b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 23 Apr 2014 17:35:33 +0200 >Subject: [PATCH] Bug 10832: Add the MTT in the warn message > >If no template is defined for a letter and the needed MTT, we >should display the MTT. >--- > C4/Letters.pm | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 7b55762..0d5e352 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -451,9 +451,10 @@ sub GetPreparedLetter { > my $module = $params{module} or croak "No module"; > my $letter_code = $params{letter_code} or croak "No letter_code"; > my $branchcode = $params{branchcode} || ''; >+ my $mtt = $params{message_transport_type} || 'email'; > >- my $letter = getletter( $module, $letter_code, $branchcode, $params{message_transport_type} ) >- or warn( "No $module $letter_code letter"), >+ my $letter = getletter( $module, $letter_code, $branchcode, $mtt ) >+ or warn( "No template $mtt for $module $letter_code letter"), > return; > > my $tables = $params{tables}; >-- >1.7.10.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 10832
:
20817
|
20818
|
20819
|
22815
|
23900
|
25219
|
25223
|
27468
|
27469
|
27496
|
27497
| 27498