From 1a74561bd1f6b7632dd33c1189cb545b671a2e71 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 19 Jul 2021 15:11:15 +0000 Subject: [PATCH] Bug 28717: (follow-up) add title to logged information --- tools/koha-news.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/koha-news.pl b/tools/koha-news.pl index 452ce40b06..cbdf686f24 100755 --- a/tools/koha-news.pl +++ b/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; -- 2.20.1