From: Ben Shum Date: Fri, 15 Mar 2013 05:04:06 +0000 (-0400) Subject: LP1116258 - Hide download circ history if none to be found X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9c1d4b6e77758b0dfc22526802c9fadb83a08fd0;p=contrib%2FConifer.git 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 --- 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 %]