Forum OpenACS Q&A: Response to Minor fix in /admin/gp/one-table.tcl

Collapse
Posted by Ravi Gadad on
the reason for this is that offset doesn't begin its index at "1".. it starts at "0." therefore, in order to start from the first row, you have to offset 0. the best solution to this bug is not to create an if statement, but rather to change
offset $rownum_first_this_page
to
offset [expr $rownum_first_this_page - 1]
that way the offset is correct for all pages. given the first solution provided, one row would always be missing on subsequent pages, which is obviously undesirable.