From: Thomas Berezansky Date: Sun, 12 Aug 2012 19:16:01 +0000 (-0400) Subject: Fix TPAC shelf browser's previous link X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d34ceebde716799df47e3dd10313ca45cd5c08ad;p=contrib%2FConifer.git 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 --- 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 %]