[Rt-commit] r4401 - in rt/branches/QUEBEC-EXPERIMENTAL: .
alexmv at bestpractical.com
alexmv at bestpractical.com
Wed Jan 18 17:59:16 EST 2006
Author: alexmv
Date: Wed Jan 18 17:59:16 2006
New Revision: 4401
Modified:
rt/branches/QUEBEC-EXPERIMENTAL/ (props changed)
rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm
Log:
r8689 at zoq-fot-pik: chmrr | 2006-01-18 17:58:29 -0500
* Support multiple requestors, ccs, adminccs, or links on one line
Modified: rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm (original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm Wed Jan 18 17:59:16 2006
@@ -932,6 +932,9 @@
$args{$tag} =~ s/^\s+//g;
$args{$tag} =~ s/\s+$//g;
}
+ if (($tag =~ /^(requestor|cc|admincc)$/i or grep {lc $_ eq $tag} keys %LINKTYPEMAP) and $args{$tag} =~ /,/) {
+ $args{$tag} = [ split /,\s*/, $args{$tag} ];
+ }
}
}
}
@@ -1275,8 +1278,8 @@
next unless defined $args->{$type};
my $newaddr = $args->{$type};
- my @old = split( ', ', $oldaddr );
- my @new = split( ', ', $newaddr );
+ my @old = split( /,\s*/, $oldaddr );
+ my @new = split( /,\s*/, $newaddr );
my %oldhash = map { $_ => 1 } @old;
my %newhash = map { $_ => 1 } @new;
More information about the Rt-commit
mailing list