- Fixed: Improved XHTML compliance in various templates
- Fixed: #134: Column headers (defined in includes/definitions.php) were not marked with T() for translation
- Change: Required custom select fields will no longer show the empty option (these fields could not be saved as empty, though, because they wouldn't validate -- this is purely an interface change)
+- Change: The description (first comment) is now stored in a separate variable from the rest of the comments, allowing for one to move its placement in templates/showreport.tpl
1.2.2
===============================
AND !hidden" : '') . "
ORDER BY comment.dateline ASC"
);
+$description = null;
foreach ($comments_fetch as $comment)
{
$comment['posttime'] = $datef->format(bugdar::$options['dateformat'], $comment['dateline']);
$tpl = new BSTemplate('showreport_comment');
$tpl->vars = array('comment' => $comment);
- $comments .= $tpl->evaluate()->getTemplate();
+ $temp = $tpl->evaluate()->getTemplate();
+ if ($description == null)
+ {
+ $description = $temp;
+ }
+ else
+ {
+ $comments .= $temp;
+ }
}
$show['newreply'] = (can_perform('canpostcomments', $bug['productid']) ? true : false);