? $changes->{cc}->[0] : '';
my %forced = (
- cc => [split(/[\s,]+/, $old_cc)],
+ cc => [split(/[,;]+/, $old_cc)],
owner => $old_own,
qacontact => $old_qa,
changer => $user,
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;
my $user = Bugzilla->user;
my $dbh = Bugzilla->dbh;
+ $str = trim($str);
+
my @users = ();
return \@users if $str =~ /^\s*$/;
#Concatenate login names, so that we have a common way to handle them.
my $raw_field;
if (ref $data->{$field}) {
- $raw_field = join(" ", @{$data->{$field}});
+ $raw_field = join(",", @{$data->{$field}});
}
else {
$raw_field = $data->{$field};
$data->{$field} = '';
}
elsif ($fields->{$field}->{'type'} eq 'multi') {
- @queries = split(/[\s,;]+/, $raw_field);
+ @queries = split(/[,;]+/, $raw_field);
# We will repopulate it later if a match is found, else it must
# be undefined.
delete $data->{$field};
my @logins;
for my $query (@queries) {
+ $query = trim($query);
my $users = match(
$query, # match string
$limit, # match limit
my $self = shift;
if (!defined $self->{'is_global_watcher'}) {
- my @watchers = split(/[,\s]+/, Bugzilla->params->{'globalwatchers'});
+ my @watchers = split(/[,;]+/, Bugzilla->params->{'globalwatchers'});
$self->{'is_global_watcher'} = scalar(grep { $_ eq $self->login } @watchers) ? 1 : 0;
}
return $self->{'is_global_watcher'};
userAutoComp.useIFrame = true;
userAutoComp.resultTypeList = false;
if( multiple == true ){
- userAutoComp.delimChar = [","," "];
+ userAutoComp.delimChar = [","];
}
}