Bugzilla – Attachment 104189 Details for
Bug 25247
Exporting 'modification log' to a file should not send objects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25247: Only convert data ot objects when displaying on screen
Bug-25247-Only-convert-data-ot-objects-when-displa.patch (text/plain), 1.76 KB, created by
Katrin Fischer
on 2020-05-02 13:48:48 UTC
(
hide
)
Description:
Bug 25247: Only convert data ot objects when displaying on screen
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-05-02 13:48:48 UTC
Size:
1.76 KB
patch
obsolete
>From 3bed6c271718da668e2a01777e31476dedeb4bd0 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 22 Apr 2020 12:11:53 +0000 >Subject: [PATCH] Bug 25247: Only convert data ot objects when displaying on > screen > >To test: > 1 - Modify a patron > 2 - Circulate some items to the patron > 3 - Click 'Modification log' > 4 - Verify you see your actions > 5 - Under 'Output' select 'To a file' > 6 - Save the output to a file > 7 - View the file > 8 - Not you have references ot objects in stead of patron/item data > 9 - Apply patch >10 - Repeat >11 - Note viewing on screen has not changed >12 - Note exporting to file inlcudes borrower/item numbers and not references >13 - Sign off > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > tools/viewlog.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/tools/viewlog.pl b/tools/viewlog.pl >index e6630cf9f8..2ccd472f0e 100755 >--- a/tools/viewlog.pl >+++ b/tools/viewlog.pl >@@ -174,7 +174,7 @@ if ($do_it) { > #always add firstname and surname for librarian/user > if ( $log->user ) { > my $patron = Koha::Patrons->find( $log->user ); >- if ($patron) { >+ if ($patron && $output eq 'screen') { > $result->{librarian} = $patron; > } > } >@@ -183,7 +183,7 @@ if ($do_it) { > if ( $log->module eq "CIRCULATION" || $log->module eq "MEMBERS" || $log->module eq "FINES" ) { > if ( $log->object ) { > my $patron = Koha::Patrons->find( $log->object ); >- if ($patron) { >+ if ($patron && $output eq 'screen') { > $result->{patron} = $patron; > } > } >-- >2.11.0
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 25247
:
103464
|
103470
| 104189