[Bps-public-commit] rt-extension-repeatticket branch, master, updated. f6175807eb0c2fa2234eb68e1fad937c0b834776

? sunnavy sunnavy at bestpractical.com
Tue May 21 09:25:47 EDT 2013


The branch, master has been updated
       via  f6175807eb0c2fa2234eb68e1fad937c0b834776 (commit)
      from  46ee4586b244bae8f06411736430ad08fb541eb2 (commit)

Summary of changes:
 lib/RT/Extension/RepeatTicket.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit f6175807eb0c2fa2234eb68e1fad937c0b834776
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue May 21 21:19:43 2013 +0800

    fix creating cf bugs in ticket repeat
    
    cf args in Ticket::Create() are like ( "CustomField-23" => 'foo' )

diff --git a/lib/RT/Extension/RepeatTicket.pm b/lib/RT/Extension/RepeatTicket.pm
index 59d0022..31afae5 100644
--- a/lib/RT/Extension/RepeatTicket.pm
+++ b/lib/RT/Extension/RepeatTicket.pm
@@ -509,14 +509,14 @@ sub _RepeatTicket {
 
     my $cfs = $repeat_ticket->QueueObj->TicketCustomFields();
     while ( my $cf = $cfs->Next ) {
+        next if $cf->Name eq 'Original Ticket';
         my $cf_id     = $cf->id;
         my $cf_values = $repeat_ticket->CustomFieldValues( $cf->id );
         my @cf_values;
         while ( my $cf_value = $cf_values->Next ) {
             push @cf_values, $cf_value->Content;
         }
-        $repeat->{"Object-RT::Ticket--CustomField-$cf_id-Value"} = join "\n",
-          @cf_values;
+        $repeat->{"CustomField-$cf_id"} = \@cf_values;
     }
 
     $repeat->{Status} = 'new';

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



More information about the Bps-public-commit mailing list