From 885944d5ca81dd8e5e214589372b0fc06042fe25 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 3 Oct 2011 08:59:18 -0400 Subject: [PATCH] [SIGNED-OFF] Fix for Bug 6955, Toolbar on reading history broken Content-Type: text/plain; charset="utf-8" Table sorter script causes error if there is no to sort. JS errors cause the YUI toolbar js to abort, causing the problem observed. When there are no results the whole table should be omitted and a message displayed in its place. Signed-off-by: Katrin Fischer To test: - check toolbar on top of patron reading history with no entries - check toolbar on top of patron reading history after a few checkouts Signed-off-by: Katrin Fischer --- .../prog/en/modules/members/readingrec.tt | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt index c61006b..ac5ee68 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt @@ -30,6 +30,7 @@
[% INCLUDE 'circ-toolbar.inc' %]

Circulation History

+[% IF ( loop_reading ) %]
@@ -93,7 +94,9 @@ [% END %] - +[% ELSE %] +
This patron has no circulation history.
+[% END %]
-- 1.7.4.1