Index: openacs-4/packages/project-manager/lib/tasks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/lib/tasks.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/project-manager/lib/tasks.tcl 3 Jun 2005 22:13:44 -0000 1.3 +++ openacs-4/packages/project-manager/lib/tasks.tcl 17 Jun 2005 05:02:42 -0000 1.4 @@ -42,6 +42,20 @@ set package_id [ad_conn package_id] } + +set community_id [dotlrn_community::get_community_id_from_url \ + -url [ad_conn url] \ + ] + +if {![empty_string_p $community_id]} { + + set base_url "project-manager/" + +} else { + + set base_url "" + +} # --------------------------------------------------------------- # Hide finished tasks. This should be added as a filter, but I did not @@ -78,6 +92,7 @@ set contacts_url [util_memoize [list site_node::get_package_url \ -package_key contacts]] + # set up context bar set context [list "[_ project-manager.Tasks]"] @@ -192,7 +207,7 @@ } if {$bulk_p == 1} { - set bulk_actions [list "[_ project-manager.Log_hours]" "log-bulk" "[_ project-manager.lt_Log_hours_for_several]" "[_ project-manager.Edit_tasks]" "task-add-edit" "[_ project-manager.Edit_multiple_tasks]"] + set bulk_actions [list "[_ project-manager.Log_hours]" "${base_url}log-bulk" "[_ project-manager.lt_Log_hours_for_several]" "[_ project-manager.Edit_tasks]" "${base_url}task-add-edit" "[_ project-manager.Edit_multiple_tasks]"] set bulk_action_export_vars [list [list return_url]] } else { set bulk_actions [list] @@ -201,7 +216,7 @@ if {$actions_p == 1} { set actions [list "[_ project-manager.Add_task]" [export_vars \ - -base task-select-project {return_url}] "[_ project-manager.Add_a_task]"] + -base "${base_url}task-select-project" {return_url}] "[_ project-manager.Add_a_task]"] } else { set actions [list] } @@ -216,19 +231,19 @@ label "[_ project-manager.number]" link_url_col item_url link_html {title "[_ project-manager.lt_View_this_project_ver]" } - display_template {@tasks.task_item_id@} + display_template {@tasks.task_item_id@} } status_type { label "[_ project-manager.Done_1]" - display_template { + display_template { } } title { label "[_ project-manager.Subject_1]" } parent_task_id { label "[_ project-manager.Dep]" - display_template {@tasks.parent_task_id@ + display_template {@tasks.parent_task_id@ } } priority { @@ -243,7 +258,7 @@ } party_id { label "[_ project-manager.Who]" - display_template { @tasks.first_names@ @tasks.last_name@
+ display_template { @tasks.first_names@ @tasks.last_name@
} } role { @@ -305,11 +320,11 @@ } log_url { label "[_ project-manager.Log]" - display_template {L} + display_template {L} } edit_url { label "[_ acs-kernel.common_Edit]" - display_template {E} + display_template {E} } percent_complete { label "[_ project-manager.Percent_complete]" Index: openacs-4/packages/project-manager/www/task-add-edit-one.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/www/task-add-edit-one.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/project-manager/www/task-add-edit-one.tcl 8 Jun 2005 20:54:20 -0000 1.11 +++ openacs-4/packages/project-manager/www/task-add-edit-one.tcl 17 Jun 2005 05:02:42 -0000 1.12 @@ -29,6 +29,8 @@ {process_task_id:integer,multiple ""} {return_url ""} {assignee:array,multiple,optional} + {organization_id "1302"} + {customer_id "1302"} }