From 93f33f5bd03fadfde1f0262401ff9dcaedab4e00 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Aug 2018 14:43:38 -0300 Subject: [PATCH] Bug 21242: Make object's input read-only when viewing patron's logs --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt | 8 ++++++-- tools/viewlog.pl | 5 ----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 2656d967e8..e6a3887d73 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -131,7 +131,11 @@
  • - + [% IF patron %][%# From the members module %] + [% object | html %] ([% INCLUDE 'patron-title.inc' patron => patron %] ) + [% ELSE %] + + [% END %]
  • @@ -276,7 +280,7 @@
    - [% IF ( circulation ) %] + [% IF patron %] [% INCLUDE 'circ-menu.inc' %] [% ELSE %] [% IF ( CATALOGUING ) %] diff --git a/tools/viewlog.pl b/tools/viewlog.pl index 7c4384acb5..69bf3f2b6f 100755 --- a/tools/viewlog.pl +++ b/tools/viewlog.pl @@ -73,10 +73,6 @@ if ( $src eq 'circ' ) { use C4::Members::Attributes qw(GetBorrowerAttributes); my $borrowernumber = $object; my $patron = Koha::Patrons->find( $borrowernumber ); - my $circ_info = 1; - unless ( $patron ) { - $circ_info = 0; - } if ( C4::Context->preference('ExtendedPatronAttributes') ) { my $attributes = GetBorrowerAttributes( $borrowernumber ); $template->param( @@ -87,7 +83,6 @@ if ( $src eq 'circ' ) { $template->param( patron => $patron, - circulation => $circ_info, ); } -- 2.11.0