Skip to content

Commit

Permalink
Fix for Bug 6955, Toolbar on reading history broken
Browse files Browse the repository at this point in the history
Table sorter script causes error if there is no <tbody> 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 <Katrin.Fischer.83@web.de>
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 <Katrin.Fischer.83@web.de>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
  • Loading branch information
oleonard authored and PaulPoulain committed Nov 4, 2011
1 parent 0faf91c commit 54226b6
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -31,6 +31,7 @@
<div class="yui-b"> <div class="yui-b">
[% INCLUDE 'circ-toolbar.inc' %] [% INCLUDE 'circ-toolbar.inc' %]
<h1>Circulation History</h1> <h1>Circulation History</h1>
[% IF ( loop_reading ) %]
<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form> <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>


<div id="pagertable_readingrec"> <div id="pagertable_readingrec">
Expand Down Expand Up @@ -79,7 +80,9 @@
</tr> </tr>
[% END %] [% END %]
</table> </table>

[% ELSE %]
<div class="dialog message">This patron has no circulation history.</div>
[% END %]
</div> </div>
</div> </div>


Expand Down

0 comments on commit 54226b6

Please sign in to comment.