Item10309: WORKFLOWLAST macros do not accept topic parameter

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: WorkflowPlugin
Branches:
Reported By: StefanosKouzof
Waiting For: Main.GilmarSantosJr
Last Change By: GilmarSantosJr
Contrary to the documentation of the WorkflowPlugin, the macros associated with the revision versions and time (%WORKFLOWLASTREV_State%, %WORKFLOWLASTTIME_State%, %WORKFLOWLASTVERSION_State%) DO NOT accept an optional default parameter, which is the name of a topic, and a web parameter.

When adding the parameter (eg %WORKFLOWLASTREV_APPROVED{topic="MyWeb.MyTopic"}% or %WORKFLOWLASTREV_APPROVED{"MyWeb.MyTopic"}% or %WORKFLOWLASTREV_APPROVED{MyWeb.MyTopic}% the macro does not get expanded.

To reproduce the error, in a DIFFERENT topic from the one that is subject to workflow control, enter the macros with the topic parameter pointing to the controlled topic. The macros do not get expanded.

-- StefanosKouzof - 01 Feb 2011

I reproduced the error with version 8761 (2010-08-25) of the WorkflowPlugin (Foswiki-1.0.9, Sun, 17 Jan 2010, build 6075, Plugin API version 2.0). According to the change history, more recent versions of the plugin do not appear to address this issue.

-- JaysonLoewen - 15 Jun 2011

I can confirm this issue in version 10878 (2011-03-01).

-- GilmarSantosJr - 07 Dec 2011

Fixed in version 13398 (2011-12-12), release 1.12.2.

-- GilmarSantosJr - 12 Dec 2011
 
Topic revision: r6 - 12 Dec 2011, 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