Hello everyone,
some time ago I have touched template::list allowing to retrieve the full number of records extracted by pagination.
Now I think I have found a regression because of this. These are the steps to reproduce the problem on a current installation:
- open a xowiki instance an enter the admin page
- click on categories
- click on an existing category tree name or create one
- click on an existing category name or create one to open the page where usages of such category are shown
On my installation this leads to an error caused by "template::paginator::create" proc: since my change this proc requires 4 arguments instead of 3, bacause one should supply also the query to count the records. Script /packages/categories/www/cadmin/category-usage.tcl doesn't know about this an passes fourth argument "-pagesize" to the proc.
This happens also in script /packages/categories/www/categories-browse.tcl for the same reason (and maybe somewhere else?)
This scripts are particular, as they call template::paginator directly, rather than by calling template::list, and I have missed this use case...
Before I think about a fix (I may have found one), can you reproduce the issue, or am I missing some update?