Skip to content

Commit

Permalink
Notes added a private when they should be public
Browse files Browse the repository at this point in the history
When notes are private by defaults, notes added via bug update action page are always marked as private.
This applies when editing a bug and adding a note, or when changing status and adding a note.

Fixes #23560
  • Loading branch information
vboctor committed Oct 28, 2017
1 parent abeecef commit 22d87bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bug_update.php
Expand Up @@ -110,7 +110,7 @@

$t_bug_note = new BugNoteData();
$t_bug_note->note = gpc_get_string( 'bugnote_text', '' );
$t_bug_note->view_state = gpc_get_bool( 'private', config_get( 'default_bugnote_view_status' ) == VS_PRIVATE ) ? VS_PRIVATE : VS_PUBLIC;
$t_bug_note->view_state = gpc_get_bool( 'private' );
$t_bug_note->time_tracking = gpc_get_string( 'time_tracking', '0:00' );

if( $t_existing_bug->last_updated != $t_updated_bug->last_updated ) {
Expand Down

0 comments on commit 22d87bf

Please sign in to comment.