Bugzilla – Attachment 33909 Details for
Bug 13215
letter.code is considered as a primary key
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13215: Fix GetLetterTemplates should return default templates if branchcode is not defined
Bug-13215-Fix-GetLetterTemplates-should-return-def.patch (text/plain), 1.23 KB, created by
Jonathan Druart
on 2014-11-25 14:35:48 UTC
(
hide
)
Description:
Bug 13215: Fix GetLetterTemplates should return default templates if branchcode is not defined
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-11-25 14:35:48 UTC
Size:
1.23 KB
patch
obsolete
>From c23f0a6217908a49632de6761604e6d2d0713f0e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 25 Nov 2014 15:34:33 +0100 >Subject: [PATCH] Bug 13215: Fix GetLetterTemplates should return default > templates if branchcode is not defined > >--- > t/db_dependent/Letters/GetLetterTemplates.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Letters/GetLetterTemplates.t b/t/db_dependent/Letters/GetLetterTemplates.t >index acde0a6..5beb658 100644 >--- a/t/db_dependent/Letters/GetLetterTemplates.t >+++ b/t/db_dependent/Letters/GetLetterTemplates.t >@@ -1,5 +1,5 @@ > use Modern::Perl; >-use Test::More tests => 6; >+use Test::More tests => 7; > > use C4::Context; > use C4::Letters qw( GetLetterTemplates ); >@@ -123,3 +123,8 @@ is( scalar( keys %$letter_templates ), > 1, '1 template should exist for circulation CPL code1' ); > is( exists( $letter_templates->{email} ), > 1, 'The mtt should be email for circulation CPL code1' ); >+ >+$letter_templates = C4::Letters::GetLetterTemplates( >+ { module => 'circulation', code => 'code1' } ); >+is( scalar( keys %$letter_templates ), >+ 2, '2 default templates should exist for circulation code1 (even if branchcode is not given)' ); >-- >2.1.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 13215
:
33316
|
33637
|
33772
|
33773
|
33788
|
33909
|
33930
|
33931
|
33932
|
33933
|
33934
|
33935
|
33936
|
33937
|
33938
|
33939
|
33971
|
33972
|
33973
|
33974
|
33975
|
33995