[Rt-commit] r3825 - in rt/branches/3.5-TESTING: . lib/RT/Action
jesse at bestpractical.com
jesse at bestpractical.com
Fri Sep 2 13:00:29 EDT 2005
Author: jesse
Date: Fri Sep 2 13:00:29 2005
New Revision: 3825
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/lib/RT/Action/CreateTickets.pm
Log:
r14111 at hualien: jesse | 2005-08-30 06:18:30 -0400
r14084 at hualien: jesse | 2005-08-30 05:57:58 -0400
r13741 at hualien: jesse | 2005-08-24 01:28:59 -0400
* Added support for named custom fields in templates
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 Fri Sep 2 13:00:29 2005
@@ -1070,8 +1070,13 @@
}
foreach my $key ( keys(%args) ) {
- $key =~ /^customfield(\d+)$/ or next;
+ if ( $key =~ /^customfield(\d+)$/ ) {
$ticketargs{ "CustomField-" . $1 } = $args{$key};
+ } elsif ($key =~ /^(customfield|cf)(.*)$/) {
+ my $cf = RT::CustomField->new($self->CurrentUser);
+ $cf->LoadByName(Name => $args{$key} , Queue => $ticketargs{Queue});
+ $ticketargs{ "CustomField-".$cf->id } = $args{$key};
+ }
}
$self->GetDeferred( \%args, $template_id, $links, $postponed );
More information about the Rt-commit
mailing list