]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1587982 - Extraneous comma in history due to wrong join of added field in Bug...
authorKohei Yoshino <kohei.yoshino@gmail.com>
Fri, 11 Oct 2019 15:22:43 +0000 (11:22 -0400)
committerdklawren <dklawren@users.noreply.github.com>
Fri, 11 Oct 2019 15:22:43 +0000 (11:22 -0400)
Bugzilla/Bug.pm

index 7da5392ff8a3cad39cc8313a1642aab7084667cd..8dd4758aa6ddd0527f9f75c779f20b1ec1d5d204 100644 (file)
@@ -4769,6 +4769,9 @@ sub _join_activity_entries {
 
   # Buglists and see_also need the comma restored
   if ($field =~ /^(?:dependson|blocked|regress(?:ed_by|es)|see_also)$/) {
+    if ($new_change eq '') {
+      return $current_change;
+    }
     if (substr($new_change, 0, 1) eq ',' || substr($new_change, 0, 1) eq ' ') {
       return $current_change . $new_change;
     }