Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit eacd840

Browse files
committedJan 20, 2012
Fix relationship_list_box() did not print value for [none], [any]
This caused e.g. a 'duplicate' relationship to be added when cloning a bug, even though '[none]' was selected in the list. This is a regression introduced by 93bbb36 Affects #12450
1 parent b5450f3 commit eacd840

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎core/relationship_api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,12 @@ function relationship_list_box( $p_default_rel_type = BUG_REL_ANY, $p_select_nam
777777
?>
778778
<select name="<?php echo $p_select_name?>">
779779
<?php if( $p_include_any ) {?>
780-
<option value="<?php BUG_REL_ANY ?>" <?php echo( $p_default_rel_type == BUG_REL_ANY ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'any' )?>]</option>
780+
<option value="<?php echo BUG_REL_ANY ?>" <?php echo( $p_default_rel_type == BUG_REL_ANY ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'any' )?>]</option>
781781
<?php
782782
}
783783

784784
if( $p_include_none ) {?>
785-
<option value="<?php BUG_REL_NONE ?>" <?php echo( $p_default_rel_type == BUG_REL_NONE ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'none' )?>]</option>
785+
<option value="<?php echo BUG_REL_NONE ?>" <?php echo( $p_default_rel_type == BUG_REL_NONE ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'none' )?>]</option>
786786
<?php
787787
}
788788

0 commit comments

Comments
 (0)
Please sign in to comment.