1. Create TopicA? under some WorkFlow control.
  2. Add =%WORKFLOWHISTORY% to the topic
  3. Perform a state transition
  4. Wait for a while
  5. Perform another state transition
  6. Look at WORKFLOWHISTORY info. The last state shows date from the previous version, instead of the current one.

It's a simple fix:

Index: WorkflowPlugin.pm
===================================================================
--- WorkflowPlugin.pm   (revisão 13932)
+++ WorkflowPlugin.pm   (cópia de trabalho)
@@ -775,7 +775,8 @@
     my @hist = $controlledTopic->{meta}->find('WORKFLOWHISTORY');
     for ( my $h = 0 ; $h < @hist ; $h++ ) {
         next unless $hist[$h]->{name} eq '-1';
-        $hist[$h]->{name} = $meta->getLatestRev();
+        @{ $hist[$h] }{qw(name date)} =
+          @{ $meta->getRevisionInfo() }{qw(version date)};
         last;
     }
     if (@hist) {

-- GilmarSantosJr - 08 Feb 2012

 

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads