From: Owen Leonard Date: Mon, 3 Oct 2011 12:59:18 +0000 (-0400) Subject: Fix for Bug 6955, Toolbar on reading history broken X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=54226b60f3e31ba52d6be88eeebcaf534ada296f Fix for Bug 6955, Toolbar on reading history broken 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 Signed-off-by: Paul Poulain --- 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 0d3b76befc..7469096e77 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt @@ -31,6 +31,7 @@
[% INCLUDE 'circ-toolbar.inc' %]

Circulation History

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