Skip to content

Commit

Permalink
Prevent custom field values list from overflowing container
Browse files Browse the repository at this point in the history
Adds spaces to custom field separator to allow line breaks.

Fixes #20103
Pull Request #647

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information
cproensa authored and dregad committed Mar 7, 2016
1 parent c5e9953 commit bd49dc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manage_custom_field_page.php
Expand Up @@ -76,7 +76,11 @@
</td>
<td><?php echo count( custom_field_get_project_ids( $t_field_id ) ) ?></td>
<td><?php echo get_enum_element( 'custom_field_type', $t_desc['type'] ) ?></td>
<td><?php echo string_display( $t_desc['possible_values'] ) ?></td>
<?php
# workaround to enforce line break displaying custom field values
# @todo replace by CSS after we don't support any longer browsers without CSS3 support
?>
<td><?php echo str_replace( '|', ' | ', string_display( $t_desc['possible_values'] ) ) ?></td>
<td><?php echo string_display( $t_desc['default_value'] ) ?></td>
</tr><?php
} # Create Form END ?>
Expand Down

0 comments on commit bd49dc0

Please sign in to comment.