* Copyright 2010, FusionForge Team
* http://fusionforge.org
*
- * This file is part of FusionForge.
- *
- * FusionForge is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
*
* FusionForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with FusionForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+if (getStringFromRequest('commentsort') == 'anti') {
+ $sort_comments_chronologically = false;
+} else {
+ $sort_comments_chronologically = true;
+}
+
pm_header(array('title'=>_('Task Detail'),'group_project_id'=>$group_project_id));
?>
<tr>
<td colspan="2">
<strong><?php echo _('Original Comment') ?>:</strong><br />
- <?php echo nl2br($pt->getDetails()); ?>
+ <?php
+ $sanitizer = new TextSanitizer();
+ $body = $sanitizer->SanitizeHtml($pt->getDetails());
+ if (strpos($body,'<') === false) {
+ echo nl2br($pt->getDetails());
+ } else {
+ echo $body;
+ }
+ ?>
</td>
</tr>
to pass into multiple select box
*/
- $result2=db_query_params ('SELECT users.user_name AS User_Name FROM users,project_assigned_to
+ $result2=db_query_params ('SELECT users.user_name AS User_Name FROM users,project_assigned_to
WHERE users.user_id=project_assigned_to.assigned_to_id AND project_task_id=$1',
array($project_task_id));
ShowResultSet($result2,_('Assigned to'), false, false);
Get the list of ids this is dependent on and convert to array
to pass into multiple select box
*/
- $result2=db_query_params ('SELECT project_task.summary FROM project_dependencies,project_task
- WHERE is_dependent_on_task_id=project_task.project_task_id
+ $result2=db_query_params ('SELECT project_task.summary FROM project_dependencies,project_task
+ WHERE is_dependent_on_task_id=project_task.project_task_id
AND project_dependencies.project_task_id=$1',
array($project_task_id));
ShowResultSet($result2,_('Dependent on task'), false, false);
<tr>
<td colspan="2">
- <?php echo $pt->showMessages(); ?>
+ <?php echo $pt->showMessages($sort_comments_chronologically, "/pm/task.php?func=detailtask&project_task_id=$project_task_id&group_id=$group_id&group_project_id=$group_project_id"); ?>
</td>
</tr>
<?php
- $hookParams['task_id']=$project_task_id;
- plugin_hook("task_extra_detail",$hookParams);
+ $hookParams['task_id'] = $project_task_id;
+ $hookParams['group_id'] = $group_id;
+ plugin_hook("task_extra_detail", $hookParams);
?>
<tr>
<td colspan="2">