[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 6548e26e4af3c40abbbaaf461b7a28372f9f1037

Evergreen Git git at git.evergreen-ils.org
Fri Mar 15 12:24:38 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_3 has been updated
       via  6548e26e4af3c40abbbaaf461b7a28372f9f1037 (commit)
      from  34748feae085d378c005f3fc95b4fbe8be3b4f8b (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 6548e26e4af3c40abbbaaf461b7a28372f9f1037
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 9b6d78d..71e66e2 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