From 9c1d4b6e77758b0dfc22526802c9fadb83a08fd0 Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Fri, 15 Mar 2013 01:04:06 -0400 Subject: [PATCH] LP1116258 - Hide download circ history if none to be found As noted in LP1116258, if there is no circ history for a patron, but they click on the Download CSV button, it leads them to unhappy server errors. So, hide the Download CSV button unless the number of circs > 0. Signed-off-by: Ben Shum Signed-off-by: Pasi Kallinen --- Open-ILS/src/templates/opac/myopac/circ_history.tt2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/templates/opac/myopac/circ_history.tt2 b/Open-ILS/src/templates/opac/myopac/circ_history.tt2 index 3bb04bb836..4582e81d0b 100644 --- a/Open-ILS/src/templates/opac/myopac/circ_history.tt2 +++ b/Open-ILS/src/templates/opac/myopac/circ_history.tt2 @@ -30,8 +30,10 @@
[%- INCLUDE "opac/parts/preserve_params.tt2" %] + [% IF ctx.circs.size > 0 %] + [% END %]
-- 2.43.2