diff --git a/core/bugnote_api.php b/core/bugnote_api.php index 4937c7f5a7..a47d8d9dd6 100644 --- a/core/bugnote_api.php +++ b/core/bugnote_api.php @@ -559,7 +559,7 @@ function bugnote_set_view_state( $p_bugnote_id, $p_private ) { WHERE id=" . db_param(); db_query_bound( $query, Array( $t_view_state, $c_bugnote_id ) ); - history_log_event_special( $t_bug_id, BUGNOTE_STATE_CHANGED, bugnote_format_id( $t_view_state ), $p_bugnote_id ); + history_log_event_special( $t_bug_id, BUGNOTE_STATE_CHANGED, $t_view_state, bugnote_format_id( $p_bugnote_id ) ); return true; } diff --git a/core/history_api.php b/core/history_api.php index e530308032..9f4a189b87 100644 --- a/core/history_api.php +++ b/core/history_api.php @@ -451,7 +451,7 @@ function history_localize_item( $p_field_name, $p_type, $p_old_value, $p_new_val break; case BUGNOTE_STATE_CHANGED: $p_old_value = get_enum_element( 'view_state', $p_old_value ); - $t_note = lang_get( 'bugnote_view_state' ) . ': ' . $p_old_value . ': ' . $p_new_value; + $t_note = lang_get( 'bugnote_view_state' ) . ': ' . $p_new_value . ': ' . $p_old_value; break; case BUG_MONITOR: $p_old_value = user_get_name( $p_old_value );