From 45cf688c1ca50bb5659bf3cda3c276627671a438 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 --- 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 a24fcb9..d74d52b 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 ) %]