Item11513: META:WORKFLOWHISTORY stores wrong date information

Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: WorkflowPlugin
Branches: trunk
Reported By: GilmarSantosJr
Waiting For:
Last Change By: GilmarSantosJr
  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:

---   (revisão 13932)
+++   (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)};
     if (@hist) {

-- GilmarSantosJr - 08 Feb 2012


ItemTemplate edit

Summary META:WORKFLOWHISTORY stores wrong date information
ReportedBy GilmarSantosJr
SVN Range
AppliesTo Extension
Component WorkflowPlugin
Priority Enhancement
CurrentState Closed
Checkins WorkflowPlugin:4887a0cb45e9
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins WorkflowPlugin:4887a0cb45e9
Topic revision: r3 - 08 Feb 2012, GilmarSantosJr
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy