Index: openacs-4/contrib/packages/project-manager/www/dependency-add-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/dependency-add-edit.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/contrib/packages/project-manager/www/dependency-add-edit.tcl 4 Sep 2003 22:45:23 -0000 1.2 +++ openacs-4/contrib/packages/project-manager/www/dependency-add-edit.tcl 12 Sep 2003 21:36:32 -0000 1.3 @@ -46,6 +46,10 @@ set project_item_id [db_string get_parent_project { }] } +if {![exists_and_not_null task_revisions]} { + ad_returnredirect "one?[export_url_vars project_item_id]" +} + # terminology set project_term [parameter::get -parameter "ProjectName" -default "Project"] set task_term [parameter::get -parameter "TaskName" -default "Task"] Index: openacs-4/contrib/packages/project-manager/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/index.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/contrib/packages/project-manager/www/index.tcl 12 Sep 2003 01:20:57 -0000 1.8 +++ openacs-4/contrib/packages/project-manager/www/index.tcl 12 Sep 2003 21:36:32 -0000 1.9 @@ -75,6 +75,9 @@ display_template "@projects.actual_hours_completed@/@projects.estimated_hours_total@" } } \ + -main_class { + narrow + } \ -filters { orderby_project {} } \ Index: openacs-4/contrib/packages/project-manager/www/one-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/one-postgresql.xql,v diff -u -r1.15 -r1.16 --- openacs-4/contrib/packages/project-manager/www/one-postgresql.xql 12 Sep 2003 01:20:57 -0000 1.15 +++ openacs-4/contrib/packages/project-manager/www/one-postgresql.xql 12 Sep 2003 21:36:32 -0000 1.16 @@ -89,7 +89,9 @@ to_char(t.earliest_finish,'Mon DD ''YY') as earliest_finish, to_char(t.latest_start,'Mon DD ''YY') as latest_start, to_char(t.latest_finish,'Mon DD ''YY') as latest_finish, - t.latest_start-t.earliest_start as slack_time, + to_char(t.latest_start-t.earliest_start,'DD') || ' days' as slack_time, + u.first_names, + u.last_name, t.percent_complete, d.parent_task_id, d.dependency_type, @@ -98,10 +100,11 @@ t.estimated_hours_work_max, t.actual_hours_worked FROM - pm_tasks_revisionsx t, cr_items i LEFT JOIN pm_task_dependency d ON i.item_id = d.task_id + pm_tasks_revisionsx t LEFT JOIN pm_task_assignment a ON t.item_id = a.task_id, cr_items i LEFT JOIN pm_task_dependency d ON i.item_id = d.task_id, cc_users u WHERE t.parent_id = :project_item_id and - t.revision_id = i.live_revision + t.revision_id = i.live_revision and + a.party_id = u.party_id [template::list::orderby_clause -name tasks -orderby] Index: openacs-4/contrib/packages/project-manager/www/one.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/one.adp,v diff -u -r1.21 -r1.22 --- openacs-4/contrib/packages/project-manager/www/one.adp 12 Sep 2003 01:20:57 -0000 1.21 +++ openacs-4/contrib/packages/project-manager/www/one.adp 12 Sep 2003 21:36:32 -0000 1.22 @@ -55,6 +55,20 @@