From 40b8a078663cabc21351e35fde39929692e4c919 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 17 May 2016 04:46:31 +0000 Subject: [PATCH] [SIGNED-OFF] Bug 16531: Circ overdue report is showing an empty table if no overdues Content-Type: text/plain; charset="utf-8" EDIT: Comment 2 To test: 1) Ensure you have no items overdue 2) Go to Circ -> Circulation reports -> Overdues 3) Notice empty table, '0 items overdue' heading 4) Apply patch and refresh page 5) Notice empty table is no longer showing and page says "There are no overdues" 6) Apply a filter to search 7) Page now says "There are no overdues matching your search" with a link to reset filter. 8) Click Reset filter -> confirm any filters you applied are cleared. 9) Check out an item to a member, ensure due date is a date that has passed (i.e. yesterday) 10) Refresh overdue report page 11) Confirm table now shows correctly with '1 items overdue' heading etc. Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard --- .../intranet-tmpl/prog/en/modules/circ/overdue.tt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt index 4ebc7d2..8f4a6f7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt @@ -77,13 +77,7 @@
-[% IF ( noreport ) %] - -

Overdue report

- -

Please choose one or more filters to proceed.

- -[% ELSE %] +[% IF ( overdueloop ) %]

[% nnoverdue %] [% IF ( noverdue_is_plural ) %]Items[% ELSE %]Item[% END %] overdue as of [% todaysdate %][% IF ( isfiltered ) %] (Filtered. Reset filter)[% END %]

@@ -127,7 +121,16 @@ overdue as of [% todaysdate %][% IF ( isfiltered ) %] Reset filter

+[% ELSE %] +

There are no overdues.

+[% END %] + +[% END %]
-- 2.1.4