Skip to content

Commit

Permalink
Fix change status php error
Browse files Browse the repository at this point in the history
Fix change status php error when private notes are not accessible.

Fixes #23721
  • Loading branch information
vboctor committed Dec 23, 2017
1 parent 798792e commit fcd62d2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bug_change_status_page.php
Expand Up @@ -333,17 +333,18 @@
printf( ' <input type="hidden" name="resolution" value="%s" />' . "\n", config_get( 'bug_reopen_resolution' ) );
}
?>
<?php if( access_has_bug_level( config_get( 'private_bugnote_threshold' ), $f_bug_id ) ) { ?>
<?php
$t_default_bugnote_view_status = config_get( 'default_bugnote_view_status' );
$t_bugnote_private = $t_default_bugnote_view_status == VS_PRIVATE;
$t_bugnote_class = $t_bugnote_private ? 'form-control bugnote-private' : 'form-control';

if( access_has_bug_level( config_get( 'private_bugnote_threshold' ), $f_bug_id ) ) { ?>
<tr>
<th class="category">
<?php echo lang_get( 'view_status' ) ?>
</th>
<td>
<?php
$t_default_bugnote_view_status = config_get( 'default_bugnote_view_status' );
$t_bugnote_private = $t_default_bugnote_view_status == VS_PRIVATE;
$t_bugnote_class = $t_bugnote_private ? 'form-control bugnote-private' : 'form-control';

if( access_has_bug_level( config_get( 'set_view_status_threshold' ), $f_bug_id ) ) {
?>
<input type="checkbox" id="bugnote_add_view_status" class="ace" name="private"
Expand Down

0 comments on commit fcd62d2

Please sign in to comment.