trac #1160 fix dropdown xmloutput function for the selected attribute and fix newmessage auto-selected dropdown.

This commit is contained in:
Robin Millette 2009-02-09 15:35:38 +00:00
parent a476805dd9
commit 43888b5239
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ class NewmessageAction extends Action
function showNoticeForm()
{
$message_form = new MessageForm($this, $this->to, $this->content);
$message_form = new MessageForm($this, $this->other, $this->content);
$message_form->show();
}
}

View File

@ -255,7 +255,7 @@ class HTMLOutputter extends XMLOutputter
foreach ($content as $value => $option) {
if ($value == $selected) {
$this->element('option', array('value' => $value,
'selected' => $value),
'selected' => 'selected'),
$option);
} else {
$this->element('option', array('value' => $value), $option);