Item9189: Substitution of field references broken in 1.6.2

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FormPlugin
Branches:
Reported By: StefanosKouzof
Waiting For:
Last Change By: ArthurClemens
-- StefanosKouzof - 23 Jun 2010

I have an application that creates topics based on user names, and am using the substitution of field references to create personalized topic names.

I have a static page name and a variable that gets the wikiname of the user. I tried the substitution in two ways:

  • The classic one:
 
%STARTFORM{
name="EmployeePageCreate"
action="save"
web="%WEB%"
topic="EmpTopic$EmpName"
onSubmit="return notify(this)"
method="post"
}%
....

  • And a more verbose one:
 
%STARTFORM{
name="EmployeePageCreate"
action="save"
web="%WEB%"
topic="$EmpTopic"
onSubmit="return notify(this)"
method="post"
}%

...

%FORMELEMENT{
name="EmpTopic"
type="hidden"
default="Employee$EmpUserName"
}%

Both ways, the form plugin does not save the form. If i remove replace the variable (or replace it with AUTOINC), all works fine.

Example:
 
%STARTFORM{
name="EmployeePageCreate"
action="save"
web="%WEB%"
topic="EmpTopicAUTOINC0001"
onSubmit="return notify(this)"
method="post"
}%
....

On the other hand, if there is a space among the variables (like the default example in the Sandbox>FormPluginExamples), all is working. This happened just after the upgrade to latest version.

Fixed in FormPlugin 2.0.

-- ArthurClemens - 30 Apr 2011

 

ItemTemplate edit

Summary Substitution of field references broken in 1.6.2
ReportedBy StefanosKouzof
Codebase 1.0.9
SVN Range
AppliesTo Extension
Component FormPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r3 - 30 Apr 2011, ArthurClemens
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