From 369eb9bc388154c1212f00f3a3ff3983b1e15b28 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 28 Dec 2010 10:48:09 -0500 Subject: [PATCH] Fix for Bug 5540, editing slip news changes to librarian interface The script checks for a language-specific OPAC message and, if none is found, preselects none of the "display location" options. This results in the first item in the - + diff --git a/tools/koha-news.pl b/tools/koha-news.pl index ff4a32f..2451934 100755 --- a/tools/koha-news.pl +++ b/tools/koha-news.pl @@ -74,6 +74,7 @@ my $op = $cgi->param('op'); if ( $op eq 'add_form' ) { $template->param( add_form => 1 ); if ($id) { + if($new_detail->{lang} eq "slip"){ $template->param( slip => 1); } $template->param( op => 'edit', id => $new_detail->{'idnew'} -- 1.7.1