[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 97bf1bb3b78e6b1ae825e26230a0766bce28162c

Evergreen Git git at git.evergreen-ils.org
Mon Aug 13 09:56:23 EDT 2012


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  97bf1bb3b78e6b1ae825e26230a0766bce28162c (commit)
      from  5391ddb464bc7e55aaa187dd7641b76d12d869fc (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 97bf1bb3b78e6b1ae825e26230a0766bce28162c
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Sun Aug 12 15:16:01 2012 -0400

    Fix TPAC shelf browser's previous link
    
    Line fix suggested by Thomas Berezansky.
    
    The cnoffset was strictly checking for values that start with a digit.
    But negative numbers start with a "-" instead. Once this check was
    changed, the previous link will continue to move further into negative
    offsets.
    
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2
index b9498bb..8240697 100644
--- a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2
@@ -1,6 +1,6 @@
 [% 
     cnoffset = CGI.param('cnoffset');
-    cnoffset = cnoffset.match('^\d+$') ? cnoffset : 0; # verify cnoffset is a sane value
+    cnoffset = cnoffset.match('^-?\d+$') ? cnoffset : 0; # verify cnoffset is a sane value
 %]
 
 <div id='cn_browse' class='cn_browser'>

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/opac/parts/record/cnbrowse.tt2   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list