X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=tools%2Fkoha-news.pl;h=afc526864effc93c4f81fb06650274ea0ad0099b;hb=7e7b3731dc17b437b78b12fc7e321affa1d80b94;hp=ff4a32f3234b5e87c020ab2381cd3a474d908476;hpb=44201a54e15f06d13c2f40d93bd5a76f6493d7d2;p=koha_fer diff --git a/tools/koha-news.pl b/tools/koha-news.pl index ff4a32f323..afc526864e 100755 --- a/tools/koha-news.pl +++ b/tools/koha-news.pl @@ -74,11 +74,12 @@ 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'} ); - $template->param($new_detail); + $template->{VARS}->{'new_detail'} = $new_detail; } else { $template->param( op => 'add' );