Bugzilla – Attachment 4478 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]
Signed-off patch
0001-SIGNED-OFF-Bug-6460-No-log-generated-if-Action-set-t.patch (text/plain), 943 bytes, created by
Magnus Enger
on 2011-06-15 11:01:59 UTC
(
hide
)
Description:
Signed-off patch
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2011-06-15 11:01:59 UTC
Size:
943 bytes
patch
obsolete
>From ab5b9bb9b6cb9208a604438ec6b8275835ac3eaa Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Sun, 5 Jun 2011 02:16:17 +0300 >Subject: [PATCH] [SIGNED-OFF] Bug 6460 - No log generated if Action set to All or Modify or Delete > > >Signed-off-by: Magnus Enger <magnus@enger.priv.no> >--- > 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.4.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 6460
:
4359
|
4478
|
5546
|
5560
|
5569
|
5570