Bugzilla – Attachment 30898 Details for
Bug 12705
News not possible for one sublanguage if two sublanguages are installed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12705 - News not possible for one sublanguage if two sublanguages are installed
PASSED-QA-Bug-12705---News-not-possible-for-one-su.patch (text/plain), 1.62 KB, created by
Katrin Fischer
on 2014-08-17 22:27:49 UTC
(
hide
)
Description:
[PASSED QA] Bug 12705 - News not possible for one sublanguage if two sublanguages are installed
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-08-17 22:27:49 UTC
Size:
1.62 KB
patch
obsolete
>From 1cad63c0f5a944db685f5883844e213cd84f0d15 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Sun, 27 Jul 2014 08:03:23 +0200 >Subject: [PATCH] [PASSED QA] Bug 12705 - News not possible for one sublanguage > if two sublanguages are installed > >To test: >- Install two language variants (e.g. de-DE and de-CH) >- Create OPAC news for each of them >- Verify that they are displayed in OPAC as appropriate > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Works Ok, no koha-qa errors > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Works ok, all installed languages now show up in the pull downs >and display for the selected language in the OPAC. >Passes tests and QA script. >--- > tools/koha-news.pl | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > >diff --git a/tools/koha-news.pl b/tools/koha-news.pl >index 478308f..a07b3d4 100755 >--- a/tools/koha-news.pl >+++ b/tools/koha-news.pl >@@ -65,12 +65,15 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > # get lang list > my @lang_list; > my $tlangs = getTranslatedLanguages() ; >+ > foreach my $language ( @$tlangs ) { >- push @lang_list, >- { >- language => $language->{'rfc4646_subtag'}, >- selected => ( $new_detail->{lang} eq $language->{'rfc4646_subtag'} ? 1 : 0 ), >- }; >+ foreach my $sublanguage ( @{$language->{'sublanguages_loop'}} ) { >+ push @lang_list, >+ { >+ language => $sublanguage->{'rfc4646_subtag'}, >+ selected => ( $new_detail->{lang} eq $sublanguage->{'rfc4646_subtag'} ? 1 : 0 ), >+ }; >+ } > } > > my $branches = GetBranches; >-- >1.9.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 12705
:
30518
|
30646
|
30648
| 30898