Bugzilla – Attachment 23265 Details for
Bug 11331
CSV export for viewlog.pl is missing newlines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11331 : corrects csv export for viewlog.pl (add newlines, string separator and same column as screen output)
Bug-11331--corrects-csv-export-for-viewlogpl-add-n.patch (text/plain), 1.04 KB, created by
Sophie MEYNIEUX
on 2013-12-03 14:05:39 UTC
(
hide
)
Description:
Bug 11331 : corrects csv export for viewlog.pl (add newlines, string separator and same column as screen output)
Filename:
MIME Type:
Creator:
Sophie MEYNIEUX
Created:
2013-12-03 14:05:39 UTC
Size:
1.04 KB
patch
obsolete
>From 8c38f1661d378e1eb5a59041becbbb9c529ef732 Mon Sep 17 00:00:00 2001 >From: Sophie Meynieux <sophie.meynieux@biblibre.com> >Date: Tue, 3 Dec 2013 15:01:49 +0100 >Subject: [PATCH] Bug 11331 : corrects csv export for viewlog.pl (add > newlines, string separator and same column as screen > output) > >--- > tools/viewlog.pl | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/tools/viewlog.pl b/tools/viewlog.pl >index 67ce7dd..dd9df94 100755 >--- a/tools/viewlog.pl >+++ b/tools/viewlog.pl >@@ -157,10 +157,12 @@ if ($do_it) { > my $sep = C4::Context->preference("delimiter"); > foreach my $line (@data) { > #next unless $modules[0] eq "catalogue"; >- foreach (qw(timestamp firstname surname action info title author)) { >- print $line->{$_} . $sep; >- } >- } >+ #foreach (qw(timestamp firstname surname action info title author)) { >+ foreach (qw(timestamp user module action object info )) { >+ print "\"".$line->{$_}."\"". $sep; >+ } >+ print "\n"; >+ } > } > exit; > } else { >-- >1.7.10.4
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 11331
:
23265
|
30264
|
30265
|
30466
|
30467
|
30493
|
30494