Bugzilla – Attachment 25735 Details for
Bug 11760
In notices, code of road type is used instead of descritpion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11760 : In notices, code of road type is used instead of description
Bug-11760--In-notices-code-of-road-type-is-used-in.patch (text/plain), 1.45 KB, created by
Kyle M Hall (khall)
on 2014-02-28 17:09:06 UTC
(
hide
)
Description:
Bug 11760 : In notices, code of road type is used instead of description
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-02-28 17:09:06 UTC
Size:
1.45 KB
patch
obsolete
>From 8601bf0328b519e49235b35b2906d451ded3383f Mon Sep 17 00:00:00 2001 >From: Sophie Meynieux <sophie.meynieux@biblibre.com> >Date: Fri, 14 Feb 2014 12:10:32 +0100 >Subject: [PATCH] Bug 11760 : In notices, code of road type is used instead of description > >Test plan : > - Define a notice containing <<borrowers.streettype>> > - Trigger an event that generate this notice > >Without patch <<borrowers.streettype>> is replaced by ROADTYPE authorised value code. With the patch it is resplaced by its description > >This patch needs bug 7372 to be applied > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Letters.pm | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 6709294..5025c10 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -23,6 +23,7 @@ use warnings; > use MIME::Lite; > use Mail::Sendmail; > >+use C4::Koha qw(GetAuthorisedValueByCode); > use C4::Members; > use C4::Members::Attributes qw(GetBorrowerAttributes); > use C4::Branch; >@@ -637,6 +638,7 @@ sub _parseletter { > #Therefore adding the test on biblio. This includes biblioitems, > #but excludes items. Removed unneeded global and lookahead. > >+ $val = GetAuthorisedValueByCode ('ROADTYPE', $val, 0) if $table=~/^borrowers$/ && $field=~/^streettype$/; > my $replacedby = defined ($val) ? $val : ''; > ($letter->{title} ) and do { > $letter->{title} =~ s/$replacetablefield/$replacedby/g; >-- >1.7.2.5
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 11760
:
25254
|
25259
|
25302
|
25735
|
26202