Skip to content

Commit

Permalink
Fix #3124: view_bugs: a reporter has the drop-down box of actions, bu…
Browse files Browse the repository at this point in the history
…t doesn't

have the checkboxes.

M view_all_inc.php
- Show combo-box of actions only if at least one checkbox was displayed.  It has
to be done this way, because in case of "All Projects" a different access check
is done for each row.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2147 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Apr 10, 2003
1 parent 864a56e commit 0e1120d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -14,6 +14,7 @@ Mantis ChangeLog
* Fix #3108: No custom fields are shown in the details, if you are in "All Projects"
* Fix #3109: Error when adding protected users.
* Fix #3115: manage_proj_cat_edit_page.php uses the wrong project id.
* Fix #3124: view_bugs: a reporter has the drop-down box of actions, but doesn't have the checkboxes.
* Languages: Updated Italian and Dutch localisations.
* Languages: Synchronised localisation files with English localisation.

Expand Down
11 changes: 11 additions & 0 deletions view_all_inc.php
Expand Up @@ -19,6 +19,8 @@

$t_sort = $t_filter['sort'];
$t_dir = $t_filter['dir'];

$t_checkboxes_exist = false;
?>
<?php # -- ====================== FILTER FORM ========================= -- ?>
<br />
Expand Down Expand Up @@ -315,6 +317,7 @@
<?php # -- Checkbox -- ?>
<?php
if ( access_has_bug_level( config_get( 'update_bug_threshold' ), $v_id ) ) {
$t_checkboxes_exist = true;
?>
<td>
<input type="checkbox" name="bug_arr[]" value="<?php echo "$v_id" ?>" />
Expand Down Expand Up @@ -446,10 +449,18 @@
<?php # -- ====================== MASS BUG MANIPULATION ========================= -- ?>
<tr>
<td colspan="<?php echo $col_count-2 ?>">
<?php
if ( $t_checkboxes_exist ) {
?>
<select name="action">
<?php print_all_bug_action_option_list() ?>
</select>
<input type="submit" value="<?php echo 'OK'; ?>" />
<?php
} else {
echo '&nbsp;';
}
?>
</td>
<?php # -- Page number links -- ?>
<td class="right" colspan="2">
Expand Down

0 comments on commit 0e1120d

Please sign in to comment.