From d34ceebde716799df47e3dd10313ca45cd5c08ad Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Sun, 12 Aug 2012 15:16:01 -0400 Subject: [PATCH] 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 Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 index b9498bbea1..82406970a4 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 %]
-- 2.43.2