@@ -, +, @@ --- tools/koha-news.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/tools/koha-news.pl +++ a/tools/koha-news.pl @@ -118,7 +118,7 @@ elsif ( $op eq 'add' ) { })->store; #log news addition if (C4::Context->preference("NewsLog")) { - logaction('NEWS', 'ADD' , undef, $lang . ' | ' . $content); + logaction('NEWS', 'ADD' , undef, $title . ' | ' . $lang . ' | ' . $content); } print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); } @@ -141,7 +141,7 @@ elsif ( $op eq 'edit' ) { } #log news modification if (C4::Context->preference("NewsLog")) { - logaction('NEWS', 'MODIFY' , undef, $lang . ' | ' . $content); + logaction('NEWS', 'MODIFY' , undef, $title . ' | ' . $lang . ' | ' . $content); } print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); } @@ -151,7 +151,7 @@ elsif ( $op eq 'del' ) { if (C4::Context->preference("NewsLog")) { foreach my $newsid ( @ids ) { my $n = Koha::News->find( $newsid ); - logaction('NEWS', 'DELETE', undef, $n->lang . ' | ' . $n->content ); + logaction('NEWS', 'DELETE', undef, $n->title . ' | ' . $n->lang . ' | ' . $n->content ); } } Koha::News->search({ idnew => \@ids })->delete; --