From: Kohei Yoshino Date: Fri, 11 Oct 2019 15:22:43 +0000 (-0400) Subject: Bug 1587982 - Extraneous comma in history due to wrong join of added field in Bug... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12ca7e56913ed4a866a50dffb279406f09682cbf;p=thirdparty%2Fbugzilla.git Bug 1587982 - Extraneous comma in history due to wrong join of added field in Bug 136855 --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 7da5392ff..8dd4758aa 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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; }