Index: openacs-4/packages/acs-tcl/tcl/application-data-link-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/application-data-link-procs.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/acs-tcl/tcl/application-data-link-procs.tcl 22 Mar 2011 16:23:47 -0000 1.11 +++ openacs-4/packages/acs-tcl/tcl/application-data-link-procs.tcl 8 Apr 2011 10:36:34 -0000 1.12 @@ -246,7 +246,7 @@ if {[info exists to_type] && $to_type ne ""} { set to_type_clause [db_map to_type_where_clause] - if {[content::type::is_content_type -content_type $to_type]} { + if {[content::type::is_content_type -object_type $to_type]} { set to_type_clause [db_map content_type_where_clause] set content_type_from_clause [db_map content_type_from_clause] } @@ -381,4 +381,4 @@ } else { return [db_map where_clause] } -} \ No newline at end of file +}