Skip to content

Commit 42966e0

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 0542805 commit 42966e0

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
@@ -809,12 +809,12 @@ function relationship_list_box( $p_default_rel_type = BUG_REL_ANY, $p_select_nam
809809
?>
810810
<select name="<?php echo $p_select_name?>">
811811
<?php if( $p_include_any ) {?>
812-
<option value="<?php BUG_REL_ANY ?>" <?php echo( $p_default_rel_type == BUG_REL_ANY ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'any' )?>]</option>
812+
<option value="<?php echo BUG_REL_ANY ?>" <?php echo( $p_default_rel_type == BUG_REL_ANY ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'any' )?>]</option>
813813
<?php
814814
}
815815

816816
if( $p_include_none ) {?>
817-
<option value="<?php BUG_REL_NONE ?>" <?php echo( $p_default_rel_type == BUG_REL_NONE ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'none' )?>]</option>
817+
<option value="<?php echo BUG_REL_NONE ?>" <?php echo( $p_default_rel_type == BUG_REL_NONE ? ' selected="selected"' : '' )?>>[<?php echo lang_get( 'none' )?>]</option>
818818
<?php
819819
}
820820

0 commit comments

Comments
 (0)
Please sign in to comment.