From 16ee9f9d32ffafd4667264666d7f43fc671c1025 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch>
Date: Sun, 19 Apr 2015 07:37:37 +0200
Subject: [PATCH] Bug 14008 - Proposed follow-up: Dialog should appear whenever
 filters are active

The first patch displays the value(s) of an active filter if you come back to the page or reload the page via a menu action.
To make the situation more clear the dialog "No saved reports match your criteria." shoudl always appear when a filter is active.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
index 98cc1ff..34bf1ed 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
@@ -374,7 +374,7 @@ canned reports and writing custom SQL reports.</p>
     </div>
 </div>
 [% ELSE %]<div class="dialog message">
-    [% IF (filter_set) %]
+    [% IF (filter_set || filters.date || filters.author || filters.keyword) %]
     <h4>No saved reports match your criteria. </h4>
     [% IF ( CAN_user_reports_create_reports ) %]
     <form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
-- 
1.9.1