Index: bug_api.php =================================================================== --- bug_api.php (revision 4931) +++ bug_api.php (working copy) @@ -593,6 +593,9 @@ } } + #Add new duplicate relationship + relationship_add( $t_bug_id, $t_new_bug_id, BUG_HAS_DUPLICATE ); + # Copy bugnotes if ( $p_copy_bugnotes ) { $query = "SELECT *