Lines 64-74
elsif (C4::Context->userenv and defined $input->param('branch') and length $inpu
Link Here
|
64 |
} |
64 |
} |
65 |
|
65 |
|
66 |
my $news_id = $input->param('news_id'); |
66 |
my $news_id = $input->param('news_id'); |
67 |
my (@all_koha_news, $koha_news_count); |
67 |
my @all_koha_news; |
68 |
|
68 |
|
69 |
if (defined $news_id){ |
69 |
if (defined $news_id){ |
70 |
@all_koha_news = Koha::News->search({ idnew => $news_id }); |
70 |
@all_koha_news = Koha::News->search({ |
71 |
$koha_news_count = 1; |
71 |
idnew => $news_id, |
|
|
72 |
lang => { |
73 |
-in => [ $news_lang ], |
74 |
} |
75 |
}); |
72 |
if (scalar @all_koha_news > 0){ |
76 |
if (scalar @all_koha_news > 0){ |
73 |
$template->param( news_item => @all_koha_news ); |
77 |
$template->param( news_item => @all_koha_news ); |
74 |
} else { |
78 |
} else { |
75 |
- |
|
|