Skip to content

Commit

Permalink
fix the dropdown options for the milestone and version type selection,
Browse files Browse the repository at this point in the history
so it will load the right type for updating a metadata.
  • Loading branch information
seanchen committed Jan 16, 2014
1 parent 26deeab commit 3ed16da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions wp-trac-client/admin-widgets.php
Expand Up @@ -253,6 +253,12 @@ function wptc_widget_mandv_form($project, $context) {
$form_title = "Add New Milestone / Version";
}

// preparing the type options for the dropdown.
$type_options = wptc_widget_options_html(
array('version' => 'Version',
'milestone' => 'Milestone'),
$mandv_type, false, false);

echo <<<EOT
<h3>{$form_title}</h3>
Expand All @@ -275,8 +281,7 @@ class="validate">
</th>
<td>
<select id="wptc_mandvtype" name="wptc_mandvtype">
<option value="version" selected>Version</option>
<option value="milestone">Milestone</option>
{$type_options}
</select>
</td>
</tr>
Expand Down

0 comments on commit 3ed16da

Please sign in to comment.