From 6ccf771c7533b4bd83d8d43f706256b8613965d4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 24 Sep 2007 03:12:06 +0000 Subject: Bug 394796: "I'm added to or removed from this capacity" for "CCed" doesn't work correctly if several users are added or removed at once from the CC list - Patch by Frédéric Buclin r=wurblzap a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/User.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 8ccd15a63..f9448ff57 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1413,8 +1413,8 @@ sub wants_bug_mail { if ($fieldName eq "CC") { my $login = $self->login; - my $inold = ($old =~ /^(.*,)?\Q$login\E(,.*)?$/); - my $innew = ($new =~ /^(.*,)?\Q$login\E(,.*)?$/); + my $inold = ($old =~ /^(.*,\s*)?\Q$login\E(,.*)?$/); + my $innew = ($new =~ /^(.*,\s*)?\Q$login\E(,.*)?$/); if ($inold != $innew) { $events{+EVT_ADDED_REMOVED} = 1; -- cgit v1.2.3-24-g4f1b