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.63 -r1.64 --- openacs-4/packages/acs-templating/tcl/list-procs.tcl 1 Oct 2017 12:16:05 -0000 1.63 +++ openacs-4/packages/acs-templating/tcl/list-procs.tcl 21 Dec 2017 08:51:21 -0000 1.64 @@ -524,11 +524,11 @@ if { $orderby_direction eq "" } { - if {[catch { + ad_try { template::list::orderby::get_reference \ -list_name $name \ -orderby_name $orderby_name - } errorMsg]} { + } on error {errorMsg] { ad_page_contract_handle_datasource_error $errorMsg ad_script_abort } @@ -617,7 +617,7 @@ # this was failing if the template::list call contained a # page_query with an empty page_query_name uplevel $ulevel [list template::paginator create \ - --dummy--query--name-- \ + templating-paginator-$name \ $list_properties(paginator_name) \ $list_properties(page_query_substed) \ -pagesize $list_properties(page_size) \