Commit 43888b52 authored by Robin Millette's avatar Robin Millette

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

trac #1160 fix dropdown xmloutput function for the selected attribute and fix newmessage auto-selected dropdown.
parent a476805d
......@@ -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();
}
}
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment