[Rt-commit] rt branch, update-action, updated. cfeb122562fa3b37e79166234da1d0f748474105

sartak at bestpractical.com sartak at bestpractical.com
Wed Dec 16 14:06:37 EST 2009


The branch, update-action has been updated
       via  cfeb122562fa3b37e79166234da1d0f748474105 (commit)
      from  f3143779f2e75fbbbb8876695bc8f6aa6c3b8373 (commit)

Summary of changes:
 lib/RT/Action/TicketAction.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit cfeb122562fa3b37e79166234da1d0f748474105
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Dec 16 14:05:43 2009 -0500

    Only provide a default id if we have one, otherwise we break CreateTicket

diff --git a/lib/RT/Action/TicketAction.pm b/lib/RT/Action/TicketAction.pm
index 9e236b8..28a76f0 100644
--- a/lib/RT/Action/TicketAction.pm
+++ b/lib/RT/Action/TicketAction.pm
@@ -21,7 +21,8 @@ sub record {
     $self->set_queue($record->queue)
         if $record->queue->id;
 
-    $self->fill_parameter(id => default => $record->id);
+    $self->fill_parameter(id => default => $record->id)
+        if $record->id;
 
     return $ret;
 }

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


More information about the Rt-commit mailing list