[Bps-public-commit] r14696 - in sd: trunk/lib/App/SD/CLI/Command/Ticket

spang at bestpractical.com spang at bestpractical.com
Thu Jul 31 14:39:51 EDT 2008


Author: spang
Date: Thu Jul 31 14:39:50 2008
New Revision: 14696

Modified:
   sd/   (props changed)
   sd/trunk/lib/App/SD/CLI/Command/Ticket/Create.pm

Log:
 r47481 at loki:  spang | 2008-07-31 19:37:25 +0100
 pass correct props arrayref to run_another_command


Modified: sd/trunk/lib/App/SD/CLI/Command/Ticket/Create.pm
==============================================================================
--- sd/trunk/lib/App/SD/CLI/Command/Ticket/Create.pm	(original)
+++ sd/trunk/lib/App/SD/CLI/Command/Ticket/Create.pm	Thu Jul 31 14:39:50 2008
@@ -53,13 +53,13 @@
         $record = $self->record();
 
         if ($comment) {
-            my $props = { content => $comment };
+            my $props = [ {prop => 'content', cmp => '=', value => $comment} ];
             my $args = { uuid => $record->uuid() };
-            my @primary_commands = qw/ticket comment create/;
+            my $primary_commands = [ qw/ticket comment create/ ];
             $self->cli->run_another_command( type => 'comment',
                                              props => $props,
                                              args => $args,
-                                             primary_commands => \@primary_commands,
+                                             primary_commands => $primary_commands,
                                             );
         }
     } else {



More information about the Bps-public-commit mailing list