Skip to content

Commit

Permalink
Don't show additional info / steps to repro if empty
Browse files Browse the repository at this point in the history
The print issue page was showing these fields when empty, which is inconsistent
with the view issue page.

Fixes #20600
  • Loading branch information
vboctor committed Feb 13, 2016
1 parent a57d77a commit 48f93f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions print_bug_page.php
Expand Up @@ -121,8 +121,8 @@
$t_show_target_version = $t_show_versions && in_array( 'target_version', $t_fields ) && access_has_bug_level( config_get( 'roadmap_view_threshold' ), $f_bug_id );
$t_show_summary = in_array( 'summary', $t_fields );
$t_show_description = in_array( 'description', $t_fields );
$t_show_steps_to_reproduce = in_array( 'steps_to_reproduce', $t_fields );
$t_show_additional_information = in_array( 'additional_info', $t_fields );
$t_show_steps_to_reproduce = !is_blank( $t_bug->steps_to_reproduce ) && in_array( 'steps_to_reproduce', $t_fields );
$t_show_additional_information = !is_blank( $t_bug->additional_information ) && in_array( 'additional_info', $t_fields );
$t_show_tags = in_array( 'tags', $t_fields );
$t_show_attachments = in_array( 'attachments', $t_fields );
$t_show_history = access_has_bug_level( config_get( 'view_history_threshold' ), $f_bug_id );
Expand Down

0 comments on commit 48f93f8

Please sign in to comment.