[Koha-bugs] [Bug 12261] Staff client next/previous links lead to unknown record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 16 14:41:37 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12261

Juhani Seppälä <jseppal at student.uef.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jseppal at student.uef.fi

--- Comment #1 from Juhani Seppälä <jseppal at student.uef.fi> ---
Hello,

I looked into this issue:

if (me.curPos === me.searchCookie.results.length && me.searchCookie.total ==   
 me.curPos + me.searchCookie.offset) {
  nextbutton = '<span id="browse-next" class="browse-button">' + me.curPos + '
' + me.searchCookie.results.length + ' »</span>';
} else {
  nextbutton = '<a href="#" id="browse-next" class="browse-button">' +
me.curPos + ' ' + me.searchCookie.results.length + ' »</a>';
}

To me it looks like an off-by-one issue with searchCookie.results.length.
searchCookie.total seems to also be returning undefined leading that if-clause
evaluating to false.

I'm still pretty new to Koha development and am trying still to get a hold of
things - may I propose a fix for this issue?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list