Index: openacs-4/packages/tasks/lib/tasks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/tasks/lib/tasks.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/tasks/lib/tasks.tcl 26 Oct 2005 18:54:29 -0000 1.18 +++ openacs-4/packages/tasks/lib/tasks.tcl 7 Nov 2005 17:44:03 -0000 1.19 @@ -2,7 +2,7 @@ # } } - creation_user { - label "[_ tasks.Created_By]" + assignee { + label "[_ tasks.Assignee]" display_template { - class="done">@tasks.creation_name@ + class="done">@tasks.assignee_name@ } } } \ @@ -235,10 +235,10 @@ orderby_asc "lower(contact__name(t.party_id)) asc, t.due_date asc, t.priority, lower(t.title)" default_direction asc } - creation_user { - label "[_ tasks.Created_By]" - orderby_desc "lower(contact__name(ao.creation_user)) desc, t.due_date asc, t.priority, lower(t.title)" - orderby_asc "lower(contact__name(ao.creation_user)) asc, t.due_date asc, t.priority, lower(t.title)" + assignee { + label "[_ tasks.Assiggnee]" + orderby_desc "lower(contact__name(t.assignee_id)) desc, t.due_date asc, t.priority, lower(t.title)" + orderby_asc "lower(contact__name(.assignee_id)) asc, t.due_date asc, t.priority, lower(t.title)" default_direction asc } } -formats { @@ -249,10 +249,10 @@ } } -db_multirow -extend {creation_user_url contact_url complete_url done_p task_plus_url task_minus_url description_html task_url} -unclobber tasks $query_name {} { +db_multirow -extend {assignee_url contact_url complete_url done_p task_plus_url task_minus_url description_html task_url} -unclobber tasks $query_name {} { set contact_url [contact::url -party_id $party_id] - set creation_user_url [contact::url -party_id $creation_user] - regsub -all "/tasks/" $creation_user_url "/contacts/" creation_user_url + set assignee_url [contact::url -party_id $assignee_id] + regsub -all "/tasks/" $assignee_url "/contacts/" assignee_url set complete_url [export_vars -base "${tasks_url}mark-completed" -url {task_id orderby {party_id $contact_id} return_url}] if { $status_id == "2" } { set done_p 1