maltes
committed
on 17 Oct 05
Cosmetic change and making sure that the package_id is set correctly
openacs-4/packages/tasks/lib/tasks.tcl (+2 -3)
190 190     set complete_url [export_vars -base "${tasks_url}mark-completed" -url {task_id orderby {party_id $contact_id} return_url}]
191 191     if { $status_id == "2" } {
192 192         set done_p 1
193 193     } else {
194 194         set done_p 0
195 195     }
196 196     set task_url [export_vars -base "${tasks_url}task" -url {{party_id $contact_id} orderby status_id task_id}]
197 197     set task_plus_url  [export_vars -base "${tasks_url}task-interval" -url {{action plus}  {days 7} {party_id $contact_id} task_id status_id orderby return_url}]
198 198     set task_minus_url [export_vars -base "${tasks_url}task-interval" -url {{action minus} {days 7} {party_id $contact_id} task_id status_id orderby return_url}]
199 199
200 200     regsub -all "\r|\n" $description {LiNeBrEaK} description
201 201
202 202     set description_html [ad_html_text_convert \
203 203                               -from $mime_type \
204 204                               -to "text/html" \
205 205                               -truncate_len "400" \
206 206                               -more "<a href=\"${task_url}\">[_ tasks.more]</a>" \
207 207                               -- $description]
208 208     regsub -all {LiNeBrEaKLiNeBrEaK} $description_html {LiNeBrEaK} description_html
209 209     regsub -all {LiNeBrEaK} $description_html {\&nbsp;\&nbsp;\&#182;\&nbsp;} description_html
210  
211 210         regsub -all " " $due_date {\&nbsp;} due_date
212 211         regsub -all " " $completed_date {\&nbsp;} completed_date
213 212 }