Bugzilla – Attachment 122955 Details for
Bug 28717
NewsLog doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[21.05] Bug 28717: (follow-up) add title to logged information
Bug-28717-follow-up-add-title-to-logged-informatio.patch (text/plain), 1.61 KB, created by
Lucas Gass (lukeg)
on 2021-07-19 15:13:04 UTC
(
hide
)
Description:
[21.05] Bug 28717: (follow-up) add title to logged information
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2021-07-19 15:13:04 UTC
Size:
1.61 KB
patch
obsolete
>From 1a74561bd1f6b7632dd33c1189cb545b671a2e71 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28717
:
122864
|
122921
|
122927
|
122941
|
122943
|
122944
|
122955
|
123964
|
125471
|
125543
|
125637
|
125659