[Bps-public-commit] r17638 - in sd/trunk: . lib/App/SD/CLI

spang at bestpractical.com spang at bestpractical.com
Thu Jan 8 04:49:20 EST 2009


Author: spang
Date: Thu Jan  8 04:49:19 2009
New Revision: 17638

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

Log:
 r53392 at loki:  spang | 2009-01-08 10:57:29 +0200
 make 'new' and 'edit' aliases work for ticket comments too


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 Jan  8 04:49:19 2009
@@ -15,9 +15,8 @@
     my @prop_set = $self->prop_set;
     my $record = $self->_get_record_object;
 
-    # only invoke editor if no props specified on the commandline or edit arg # specified
-   return super() if (@{$self->prop_set} && !$self->has_arg('edit'));
-
+    # only invoke editor if no props specified on the commandline or edit arg specified
+    return super() if (@{$self->prop_set} && !$self->has_arg('edit'));
 
     my $template_to_edit = $self->create_record_template();
 

Modified: sd/trunk/lib/App/SD/CLI/Dispatcher.pm
==============================================================================
--- sd/trunk/lib/App/SD/CLI/Dispatcher.pm	(original)
+++ sd/trunk/lib/App/SD/CLI/Dispatcher.pm	Thu Jan  8 04:49:19 2009
@@ -62,8 +62,8 @@
     };
 
     under comment => sub {
-        on create => run_command('Ticket::Comment::Create');
-        on update => run_command('Ticket::Comment::Update');
+        on [ [ 'new', 'create' ] ] => run_command('Ticket::Comment::Create');
+        on [ [ 'update', 'edit' ] ] => run_command('Ticket::Comment::Update');
     };
 
     under attachment => sub {



More information about the Bps-public-commit mailing list