Index: openacs-4/packages/acs-templating/tcl/list-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/list-procs.tcl,v diff -u -r1.37 -r1.38 --- openacs-4/packages/acs-templating/tcl/list-procs.tcl 21 Aug 2006 16:05:50 -0000 1.37 +++ openacs-4/packages/acs-templating/tcl/list-procs.tcl 22 Aug 2006 14:51:59 -0000 1.38 @@ -561,9 +561,15 @@ set flush_p t } - # We need this uplevel so that the bind variables in the query will get bound at the caller's level + # We need this uplevel so that the bind variables in the query + # will get bound at the caller's level + # we pass in a dummy query name because the query text was + # already retreived previously with db_map so this call + # always passes the full query text and not the query name + # this was failing if the template::list call contained a + # page_query with an empty page_query_name uplevel $ulevel [list template::paginator create \ - $list_properties(page_query_name) \ + --dummy--query--name-- \ $list_properties(paginator_name) \ $list_properties(page_query_substed) \ -pagesize $list_properties(page_size) \