[Rt-commit] rt branch, create-action, updated. 7c9c5f5ecb679d01812bea4c19bcc4bc4ce3e233
sartak at bestpractical.com
sartak at bestpractical.com
Fri Sep 25 16:10:17 EDT 2009
The branch, create-action has been updated
via 7c9c5f5ecb679d01812bea4c19bcc4bc4ce3e233 (commit)
from c2114f82d7c50ff380e8b283f9ef070a0d570e0c (commit)
Summary of changes:
lib/RT/Action/CreateTicket.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 7c9c5f5ecb679d01812bea4c19bcc4bc4ce3e233
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Sep 25 16:08:41 2009 -0400
Use the type_for_rendering method of CFs
diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 9e7696a..d8b5ede 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -211,7 +211,7 @@ sub add_ticket_custom_fields {
$self->add_ticket_custom_field_parameter(
name => $cf->name,
defaults => {
- render_as => 'text',
+ render_as => $cf->type_for_rendering,
},
);
}
@@ -226,7 +226,7 @@ sub add_ticket_transaction_custom_fields {
$self->add_ticket_transaction_custom_field_parameter(
name => $cf->name,
defaults => {
- render_as => 'text',
+ render_as => $cf->type_for_rendering,
},
);
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list