]> git.donarmstrong.com Git - debbugs.git/commitdiff
Fix clone removing all other blocks instead of add
authorDon Armstrong <don@donarmstrong.com>
Thu, 17 Nov 2016 00:46:30 +0000 (16:46 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 17 Nov 2016 00:46:30 +0000 (16:46 -0800)
  + (Closes: #820044). Thanks to James Clarke.

Debbugs/Control.pm
debian/changelog

index 6f7420679beadd8339de6574877ec0758937d55e..8903ddefbaa76595534b1d8ebae355892a2255ba 100644 (file)
@@ -2936,7 +2936,8 @@ sub clone_bug {
     for my $bug (split ' ', $data->{blocks}) {
        for my $new_bug (@new_bugs) {
            set_blocks(bug => $bug,
-                   block => $new_bug,
+                      block => $new_bug,
+                      add => 1,
                       hash_slice(%param,
                                  keys %common_options,
                                  keys %append_action_options),
@@ -2947,7 +2948,8 @@ sub clone_bug {
     for my $bug (split ' ', $data->{blockedby}) {
        for my $new_bug (@new_bugs) {
            set_blocks(bug => $new_bug,
-                   block => $bug,
+                      block => $bug,
+                      add => 1,
                       hash_slice(%param,
                                  keys %common_options,
                                  keys %append_action_options),
index 24c3335d2abb4348ba458175cee26ad012fe069c..6cdffa4104ff2b119434e010b77dfa9e6035ffe7 100644 (file)
@@ -38,6 +38,8 @@ debbugs (2.6.0~exp1) UNRELEASED; urgency=low
     (Closes: #790716)
   * Fix (and test) setting summary/outlook in Control: messages (Closes:
     #836613).
+  * Fix clone removing all other blocks instead of adding them (Closes:
+    #820044). Thanks to James Clarke.
 
   [ Niels Thykier ]
   * quitcgi() now returns 400/500 status codes instead of 200 (Closes: #584922)