From d2b9602e53061ac3038961ae939edb8e7dc39027 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 24 Dec 2010 13:39:13 -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 ff4a32f323..2451934944 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'} -- 2.39.2