Bugzilla – Attachment 127464 Details for
Bug 28712
Printed slips for fees come up empty if no notice is defined for the user's preferred language
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28712: Add fallback to default for missing language template
Bug-28712-Add-fallback-to-default-for-missing-lang.patch (text/plain), 985 bytes, created by
Martin Renvoize (ashimema)
on 2021-11-09 10:49:16 UTC
(
hide
)
Description:
Bug 28712: Add fallback to default for missing language template
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-11-09 10:49:16 UTC
Size:
985 bytes
patch
obsolete
>From 67fb13adc841ccac5f88ef27c9e43403cf776355 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 9 Nov 2021 10:48:33 +0000 >Subject: [PATCH] Bug 28712: Add fallback to default for missing language > template > >--- > C4/Letters.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index e256d6435a..51bd838e2c 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -637,7 +637,8 @@ sub GetPreparedLetter { > my $branchcode = $params{branchcode} || ''; > my $mtt = $params{message_transport_type} || 'email'; > >- $letter = getletter( $module, $letter_code, $branchcode, $mtt, $lang ); >+ $letter = getletter( $module, $letter_code, $branchcode, $mtt, $lang ) >+ || getletter( $module, $letter_code, $branchcode, $mtt, "default" ); > > unless ( $letter ) { > $letter = getletter( $module, $letter_code, $branchcode, $mtt, 'default' ) >-- >2.20.1
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 28712
: 127464