[Rt-commit] rt branch, create-action, updated. 4d93690998a96eff39037570a8fd0c1e131462af

sartak at bestpractical.com sartak at bestpractical.com
Fri Sep 25 13:22:56 EDT 2009


The branch, create-action has been updated
       via  4d93690998a96eff39037570a8fd0c1e131462af (commit)
      from  abfbc8a333578c45219297c9f99f03a9771f6f07 (commit)

Summary of changes:
 lib/RT/Action/CreateTicket.pm |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 4d93690998a96eff39037570a8fd0c1e131462af
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Sep 25 13:22:47 2009 -0400

    Basic adding ticket CFs to the action

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 544f485..7e6e895 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -205,6 +205,16 @@ sub take_action {
 sub add_ticket_custom_fields {
     my $self  = shift;
     my $queue = shift;
+
+    my $cfs = $queue->ticket_custom_fields;
+    while (my $cf = $cfs->next) {
+        $self->add_ticket_custom_field_parameter(
+            name     => $cf->name,
+            defaults => {
+                render_as => 'text',
+            },
+        );
+    }
 }
 
 sub add_transaction_custom_fields {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list