[open-ils-commits] [GIT] Evergreen ILS branch master updated. 9c1d4b6e77758b0dfc22526802c9fadb83a08fd0
Evergreen Git
git at git.evergreen-ils.org
Fri Mar 15 12:24:37 EDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 9c1d4b6e77758b0dfc22526802c9fadb83a08fd0 (commit)
from ef4000cce538a9b57a8492be4e741c5323795a60 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9c1d4b6e77758b0dfc22526802c9fadb83a08fd0
Author: Ben Shum <bshum at biblio.org>
Date: Fri Mar 15 01:04:06 2013 -0400
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 <bshum at biblio.org>
Signed-off-by: Pasi Kallinen <pasi.kallinen at pttk.fi>
diff --git a/Open-ILS/src/templates/opac/myopac/circ_history.tt2 b/Open-ILS/src/templates/opac/myopac/circ_history.tt2
index 3bb04bb..4582e81 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 @@
<form action="[% mkurl(ctx.opac_root _ '/myopac/circ_history/export') %]" method="post">
<div>
[%- INCLUDE "opac/parts/preserve_params.tt2" %]
+ [% IF ctx.circs.size > 0 %]
<input type="hidden" name="filename" value="[% l('circ_history.csv') %]"/>
<button type="submit">[% l('Download CSV') %]</button>
+ [% END %]
</div>
</form>
</span>
-----------------------------------------------------------------------
Summary of changes:
.../src/templates/opac/myopac/circ_history.tt2 | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list