Skip to content

Commit

Permalink
Version 1.01
Browse files Browse the repository at this point in the history
  • Loading branch information
Cas Nuy authored and toto0000000000000000000000000000000007 committed Nov 12, 2010
1 parent 13ffa6c commit c74543b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
23 changes: 15 additions & 8 deletions CustomReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function register() {
$this->name = 'CustomReporter';
$this->description = 'Ability to select Reporter';
$this->page = 'config';
$this->version = '1.0';
$this->version = '1.01';
$this->requires = array( 'MantisCore' => '1.2.0', );
$this->author = 'Carlos Proensa';
$this->contact = '';
Expand All @@ -33,14 +33,21 @@ function reportBugFormTop ( $p_event, $p_project_id){
$user_id= auth_get_current_user_id();
$access_level= user_get_access_level( $user_id, $p_project_id );
if ($access_level >plugin_config_get( 'reporter_select_threshold' )) {
echo '<tr><td class="category">';
echo 'Reporter: ';
echo '</td><td>';
echo '<select '.helper_get_tab_index().' name="user_id">';
print_reporter_option_list( $user_id, $p_new_bug->project_id );
echo '</select>';
?>
<tr <?php echo helper_alternate_class() ?>>
<td class="category" width="30%">
<?PHP echo 'Reporter: ' ?>
</td>
<td width="70%">
<select <?php echo helper_get_tab_index() ?> name="user_id">
<?php
print_reporter_option_list( $user_id, $p_project_id );
?>
</select>
</td>
</tr>
<?PHP
}
echo '</td></tr>';
}


Expand Down
2 changes: 1 addition & 1 deletion lang/strings_english.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?PHP
$s_plugin_format_title = "CustomReporterSelect";
$s_plugin_customceporter_config = "Configuration";
$s_reporter_select_threshold ="Treshold for selecting Reporter";
$s_reporter_select_threshold ="Threshold for selecting Reporter";
$s_change_configuration ="Update Config";

0 comments on commit c74543b

Please sign in to comment.