Item11513: META:WORKFLOWHISTORY stores wrong date
information
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
- Create TopicA under some WorkFlow control.
- Add =%WORKFLOWHISTORY% to the topic
- Perform a state transition
- Wait for a while
- Perform another state transition
- 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