[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 46ea18efa2303e3c26b33b097dbda940cb0cc5d2
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, rel_2_2 has been updated
via 46ea18efa2303e3c26b33b097dbda940cb0cc5d2 (commit)
from e799aee1f17a9a19c6fe41c269057a6e4a3c98e8 (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 46ea18efa2303e3c26b33b097dbda940cb0cc5d2
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 4e8c861..c76fa17 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