Bugzilla – Attachment 76580 Details for
Bug 14272
Allow OPAC to show a single news entry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14272: (follow-up) only display news available for a particular opac lang [alternative patch]
Bug-14272-follow-up-only-display-news-available-fo.patch (text/plain), 1.02 KB, created by
Charles Farmer
on 2018-06-29 18:27:52 UTC
(
hide
)
Description:
Bug 14272: (follow-up) only display news available for a particular opac lang [alternative patch]
Filename:
MIME Type:
Creator:
Charles Farmer
Created:
2018-06-29 18:27:52 UTC
Size:
1.02 KB
patch
obsolete
>From d20f41b596889aeb28f835afd5f8ae1757498903 Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inLibro.com> >Date: Fri, 29 Jun 2018 14:27:00 -0400 >Subject: [PATCH] Bug 14272: (follow-up) only display news available for a > particular opac lang [alternative patch] > >--- > opac/opac-main.pl | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/opac/opac-main.pl b/opac/opac-main.pl >index 9b620cf..e651a55 100755 >--- a/opac/opac-main.pl >+++ b/opac/opac-main.pl >@@ -64,11 +64,13 @@ elsif (C4::Context->userenv and defined $input->param('branch') and length $inpu > } > > my $news_id = $input->param('news_id'); >-my (@all_koha_news, $koha_news_count); >+my @all_koha_news; > > if (defined $news_id){ >- @all_koha_news = Koha::News->search({ idnew => $news_id }); >- $koha_news_count = 1; >+ @all_koha_news = Koha::News->search({ >+ idnew => $news_id, >+ lang => $news_lang, >+ }); > if (scalar @all_koha_news > 0){ > $template->param( news_item => @all_koha_news ); > } else { >-- >2.7.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 14272
:
45721
|
45740
|
45741
|
45818
|
45820
|
45845
|
45846
|
45935
|
45936
|
45937
|
47556
|
47557
|
47558
|
47665
|
47666
|
47667
|
47668
|
47669
|
47670
|
47671
|
47672
|
47673
|
50557
|
50558
|
50559
|
59483
|
70728
|
70729
|
70730
|
70731
|
72065
|
72548
|
72549
|
72550
|
72551
|
76015
|
76307
|
76580
|
76662
|
77546
|
77564
|
77565
|
77566
|
77567
|
77568
|
77569
|
78104
|
78206
|
78207
|
78208
|
78231
|
81643
|
82713
|
83425
|
83426
|
83427
|
83428
|
83429
|
83430
|
84868
|
84869
|
84870
|
84871
|
84872
|
84873
|
84874