From 449d819dd9adc8a016504627847887d4c86de240 Mon Sep 17 00:00:00 2001 From: Roland Becker Date: Tue, 7 Nov 2017 09:48:18 +0100 Subject: [PATCH] Don't set view_state to bool but VS_PRIVATE or VS_PUBLIC Fixes #23599 --- bug_update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bug_update.php b/bug_update.php index b121cab823..350add22d9 100644 --- a/bug_update.php +++ b/bug_update.php @@ -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' ); +$t_bug_note->view_state = gpc_get_bool( 'private' ) ? VS_PRIVATE : VS_PUBLIC; $t_bug_note->time_tracking = gpc_get_string( 'time_tracking', '0:00' ); if( $t_existing_bug->last_updated != $t_updated_bug->last_updated ) {