Skip to content

Commit

Permalink
Resize relationship dropdown box for filter use
Browse files Browse the repository at this point in the history
Fixes #22359
  • Loading branch information
syncguru authored and vboctor committed Feb 11, 2017
1 parent ff0f6bb commit f782e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/filter_form_api.php
Expand Up @@ -1557,7 +1557,7 @@ function print_filter_relationship_type( array $p_filter = null ) {
if( !$c_reltype_value ) {
$c_reltype_value = -1;
}
relationship_list_box( $c_reltype_value, 'relationship_type', true );
relationship_list_box( $c_reltype_value, 'relationship_type', true, false, "input-xs" );
echo '<input class="input-xs" type="text" name="', FILTER_PROPERTY_RELATIONSHIP_BUG, '" size="5" maxlength="10" value="', $p_filter[FILTER_PROPERTY_RELATIONSHIP_BUG], '" />';
}

Expand Down
5 changes: 3 additions & 2 deletions core/relationship_api.php
Expand Up @@ -779,12 +779,13 @@ function relationship_get_summary_text( $p_bug_id ) {
* @param string $p_select_name List box name (default "rel_type").
* @param boolean $p_include_any Include an ANY option in list box (default false).
* @param boolean $p_include_none Include a NONE option in list box (default false).
* @param string $p_input_css CSS classes to use with input fields
* @return void
*/
function relationship_list_box( $p_default_rel_type = BUG_REL_ANY, $p_select_name = 'rel_type', $p_include_any = false, $p_include_none = false ) {
function relationship_list_box( $p_default_rel_type = BUG_REL_ANY, $p_select_name = 'rel_type', $p_include_any = false, $p_include_none = false, $p_input_css = "input-sm" ) {
global $g_relationships;
?>
<select class="input-sm" name="<?php echo $p_select_name?>">
<select class="<?php echo $p_input_css ?>" name="<?php echo $p_select_name?>">
<?php if( $p_include_any ) {?>
<option value="<?php echo BUG_REL_ANY ?>" <?php echo( $p_default_rel_type == BUG_REL_ANY ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'any' )?>]</option>
<?php
Expand Down

0 comments on commit f782e9d

Please sign in to comment.