Bugzilla – Attachment 4359 Details for
Bug 6460
No log generated if Action set to All or Modify or Delete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-6460-No-log-generated-if-Action-set-to-All-or-Mo.patch (text/plain), 878 bytes, created by
Janusz Kaczmarek
on 2011-06-04 23:21:23 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2011-06-04 23:21:23 UTC
Size:
878 bytes
patch
obsolete
>From 93c228521a0e8fd0f940fb15df34451bf4cc75c0 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Sun, 5 Jun 2011 02:16:17 +0300 >Subject: [PATCH] Bug 6460 - No log generated if Action set to All or Modify or Delete > >--- > C4/Log.pm | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Log.pm b/C4/Log.pm >index 822cda5..fa258f2 100644 >--- a/C4/Log.pm >+++ b/C4/Log.pm >@@ -221,9 +221,9 @@ sub GetLogs { > $query .= " AND module IN (".join(",",map {"?"} @$modules).") "; > push(@parameters,@$modules); > } >- if($action && scalar(@$action)) { >- $query .= " AND action IN (".join(",",map {"?"} @$action).") "; >- push(@parameters,@$action); >+ if($action->[0]) { >+ $query .= " AND action LIKE ? "; >+ push(@parameters,"%".$action->[0]."%"); > } > if($object) { > $query .= " AND object = ? "; >-- >1.7.2.5 >
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 6460
:
4359
|
4478
|
5546
|
5560
|
5569
|
5570