[Rt-commit] r3924 - in rt/branches/3.5-TESTING: . lib/RT/Action
jesse at bestpractical.com
jesse at bestpractical.com
Wed Oct 5 15:23:07 EDT 2005
Author: jesse
Date: Wed Oct 5 15:23:07 2005
New Revision: 3924
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/lib/RT/Action/CreateTickets.pm
Log:
r17082 at hualien: jesse | 2005-10-05 11:08:36 -0400
r17065 at hualien: jesse | 2005-10-05 10:39:00 -0400
r15942 at hualien: jesse | 2005-09-21 23:48:22 -0400
* CreateTickets now handles custom fields
Modified: rt/branches/3.5-TESTING/lib/RT/Action/CreateTickets.pm
==============================================================================
--- rt/branches/3.5-TESTING/lib/RT/Action/CreateTickets.pm (original)
+++ rt/branches/3.5-TESTING/lib/RT/Action/CreateTickets.pm Wed Oct 5 15:23:07 2005
@@ -1072,9 +1072,9 @@
foreach my $key ( keys(%args) ) {
if ( $key =~ /^customfield(\d+)$/ ) {
$ticketargs{ "CustomField-" . $1 } = $args{$key};
- } elsif ($key =~ /^(customfield|cf)(.*)$/) {
+ } elsif ($key =~ /^(?:customfield|cf)(.*)$/) {
my $cf = RT::CustomField->new($self->CurrentUser);
- $cf->LoadByName(Name => $args{$key} , Queue => $ticketargs{Queue});
+ $cf->LoadByName(Name => $1, Queue => $ticketargs{Queue});
$ticketargs{ "CustomField-".$cf->id } = $args{$key};
}
}
More information about the Rt-commit
mailing list