summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorChristian Legnitto <clegnitto@mozilla.com>2010-10-28 15:19:51 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-10-28 15:19:51 +0200
commita6041007c544e7b2a8ae703c8e45e635e2ace991 (patch)
tree0491fa7a4263d959e95781bcaf007338f5984a0a /Bugzilla/Bug.pm
parent178eb04938393f06f60ee1a21df5d2a955c93634 (diff)
downloadbugzilla-a6041007c544e7b2a8ae703c8e45e635e2ace991.tar.gz
bugzilla-a6041007c544e7b2a8ae703c8e45e635e2ace991.tar.xz
Bug 585802: Change the cc/user autocomplete (and backend) usermatching to ignore spaces / search on space separated names
r/a=mkanat
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 026244db9..abc00c298 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1134,7 +1134,7 @@ sub send_changes {
? $changes->{cc}->[0] : '';
my %forced = (
- cc => [split(/[\s,]+/, $old_cc)],
+ cc => [split(/[,;]+/, $old_cc)],
owner => $old_own,
qacontact => $old_qa,
changer => $user,
@@ -1384,10 +1384,11 @@ sub _check_cc {
return [map {$_->id} @{$component->initial_cc}] unless $ccs;
# Allow comma-separated input as well as arrayrefs.
- $ccs = [split(/[\s,]+/, $ccs)] if !ref $ccs;
+ $ccs = [split(/[,;]+/, $ccs)] if !ref $ccs;
my %cc_ids;
foreach my $person (@$ccs) {
+ $person = trim($person);
next unless $person;
my $id = login_to_id($person, THROW_ERROR);
$cc_ids{$id} = 1;