[open-ils-commits] [GIT] Evergreen ILS branch master updated. d34ceebde716799df47e3dd10313ca45cd5c08ad
Evergreen Git
git at git.evergreen-ils.org
Mon Aug 13 09:55:57 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, master has been updated
via d34ceebde716799df47e3dd10313ca45cd5c08ad (commit)
from be1f013cd8e1815bc329f1d3ca957825052a5a9d (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 d34ceebde716799df47e3dd10313ca45cd5c08ad
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