[Bps-public-commit] r16570 - in sd/branches/sd-dispatcher: .

sartak at bestpractical.com sartak at bestpractical.com
Tue Oct 28 13:11:08 EDT 2008


Author: sartak
Date: Tue Oct 28 13:11:08 2008
New Revision: 16570

Modified:
   sd/branches/sd-dispatcher/   (props changed)
   sd/branches/sd-dispatcher/lib/App/SD/CLI/Dispatcher.pm

Log:
 r74677 at onn:  sartak | 2008-10-28 13:11:03 -0400
 Minor fixes for some ticket rules


Modified: sd/branches/sd-dispatcher/lib/App/SD/CLI/Dispatcher.pm
==============================================================================
--- sd/branches/sd-dispatcher/lib/App/SD/CLI/Dispatcher.pm	(original)
+++ sd/branches/sd-dispatcher/lib/App/SD/CLI/Dispatcher.pm	Tue Oct 28 13:11:08 2008
@@ -28,13 +28,12 @@
 
     on ['give', qr/.*/, qr/.*/] => sub {
         my $self = shift;
-        $self->context->set_arg(type  => 'ticket');
         $self->context->set_arg(id    => $2);
         $self->context->set_arg(owner => $3);
-        run('update', $self, @_);
+        run('ticket update', $self, @_);
     };
 
-    on ['resolve', 'close'] => sub {
+    on [ ['resolve', 'close'] ] => sub {
         my $self = shift;
         $self->context->set_prop(status => 'closed');
         run('ticket update', $self, @_);



More information about the Bps-public-commit mailing list