Index: openacs-4/packages/project-manager/lib/search-project.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/lib/search-project.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/project-manager/lib/search-project.tcl 20 Oct 2006 06:08:17 -0000 1.4 +++ openacs-4/packages/project-manager/lib/search-project.tcl 24 Oct 2006 15:05:17 -0000 1.5 @@ -42,13 +42,14 @@ } set project_item_id [lindex [lindex $match_projects 0] 0] - set object_package_id [lindex [lindex $match_projects 0] 1] + set object_package_id [acs_object::package_id -object_id $project_item_id] # We get the node_id from the package_id and use it # to get the url of the project-manager set pm_node_id [site_node::get_node_id_from_object_id -object_id $object_package_id] set pm_url [site_node::get_url -node_id $pm_node_id] # Just redirect to the pm_url and project_item_id + ad_returnredirect "${pm_url}one?project_item_id=$project_item_id" } -has_submit {1} \ No newline at end of file Index: openacs-4/packages/project-manager/lib/search-project.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/lib/search-project.xql,v diff -u -r1.4 -r1.5 --- openacs-4/packages/project-manager/lib/search-project.xql 20 Oct 2006 06:08:17 -0000 1.4 +++ openacs-4/packages/project-manager/lib/search-project.xql 24 Oct 2006 15:05:17 -0000 1.5 @@ -4,16 +4,15 @@ select - item_id, - o.package_id as object_package_id + i.item_id from - cr_items i, acs_objects o + cr_items i, cr_revisions r, pm_projects p where - lower(o.title) like '%${keyword}%' - and i.latest_revision = o.object_id - and i.content_type = 'pm_project' + lower(r.title) like '%${keyword}%' + and i.latest_revision = r.revision_id + and r.revision_id = p.project_id order by - title asc + r.title asc