[Rt-commit] rt branch, admin_ui, updated. 726de1abb5cd157e74068b92faa44806a9212e55

sunnavy at bestpractical.com sunnavy at bestpractical.com
Sun Jan 17 01:37:55 EST 2010


The branch, admin_ui has been updated
       via  726de1abb5cd157e74068b92faa44806a9212e55 (commit)
      from  fa83b270187ec7cc598fab023dec7bb43897acac (commit)

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

- Log -----------------------------------------------------------------
commit 726de1abb5cd157e74068b92faa44806a9212e55
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sun Jan 17 14:37:45 2010 +0800

    fix report_success of CreateWorkflow action

diff --git a/lib/RT/Action/CreateWorkflow.pm b/lib/RT/Action/CreateWorkflow.pm
index a4a5d3b..33f4abd 100644
--- a/lib/RT/Action/CreateWorkflow.pm
+++ b/lib/RT/Action/CreateWorkflow.pm
@@ -29,7 +29,7 @@ sub take_action {
         return;
     }
 
-    $self->report_success;
+    $self->report_success( $schema );
     return 1;
 }
 
@@ -39,9 +39,10 @@ sub take_action {
 
 sub report_success {
     my $self = shift;
+    my $schema = shift;
 
     # Your success message here
-    $self->result->message(_('Created workflow %1', $self->record->name));
+    $self->result->message(_('Created workflow %1', $schema->name));
 }
 
 1;

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


More information about the Rt-commit mailing list