From c2f53bd039aa2ce52c2ddc3a2314e32b44ae4ee8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 May 2016 15:28:50 +0100 Subject: [PATCH] Bug 16388: Use existing 'execute' parameter instead of creating a new one An existing 'execute' parameter is already passed to the template when we need to display the 'Download' button, so let's use it instead of creating a new one. Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher --- koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc | 4 ++-- reports/guided_reports.pl | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc index 42878e1215..09298ea2a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc @@ -9,7 +9,7 @@ [% END %] - [% IF ( showsql || execute || editsql || save_successful || runreport ) %] + [% IF ( showsql || execute || editsql || save_successful ) %] [% IF ( CAN_user_reports_create_reports ) %] [% UNLESS ( editsql ) # Do not show edit button on edit page %]
@@ -46,7 +46,7 @@
[% END %] - [% IF ( runreport ) %] + [% IF ( execute ) %]