- Fixed: If a user has set a language that does not exist anymore, then bug notifications would fail (bug://report/97)
- Fixed: Users of UTF8 languages would experience problems after upgrading (if the $utf8 config directive as ON) because the installer wasn't running in UTF8
- Fixed: In Authentication::_createBugdarUser there was a variable capitalization error (bug://report/106)
+- Fixed: Comments posted by guests could not be deleted (bug://report/120)
1.2.1
===============================
}
$comment['posttime'] = $datef->format($bugsys->options['dateformat'], $comment['dateline']);
- $comment['postby'] = construct_user_display($commentapi->relations['userid']->objdata);
+ if ($comment['userid'])
+ {
+ $commenter = new UserAPI($bugsys);
+ $commenter->set('userid', $comment['userid']);
+ $commenter->set_condition();
+ $commenter->fetch();
+ $commenter = $commenter->objdata;
+ }
+ $comment['postby'] = construct_user_display($commenter);
$comment['comment'] = $bugsys->sanitize($comment['comment']);
$show['hide'] = ($bug['initialreport'] != $comment['commentid'] ? true : false);
eval('$template->flush("' . $template->fetch('editcomment') . '");');
var $fields = array(
'commentid' => array(TYPE_UINT, REQ_AUTO, 'verify_nozero'),
'bugid' => array(TYPE_UINT, REQ_YES, 'verify_nozero'),
- 'userid' => array(TYPE_UINT, REQ_NO, null, array('includes/api_user.php', 'UserAPI')),
+ 'userid' => array(TYPE_UINT, REQ_NO),
'dateline' => array(TYPE_UINT, REQ_SET),
'parselinks' => array(TYPE_BOOL, REQ_NO),
'comment' => array(TYPE_STR, REQ_YES, 'verify_noempty'),