![]() |
|
|
|
|
Change By:
|
Jan Haderka
(25/Oct/13 1:04 PM)
|
|
Description:
|
PropertyUtil.class - line 347
return
{{
node.getProperty(name).getString();
}}
will return different values for wrapped nodes/properties then
Should it not be instead:
return
{{
node.getProperty(name).getValue().getString();
}}
Notes: When using the form module I had
because {{getValue
(
for some customization reasons
)
to change the
}} returns original unwrapped
value
of "form" component's "renderType" node from "freemarker" to "stk"
.
When doing so
Wrapping frameworks needs to make sure unwrapped values can't be returned w/o unwrapping first
,
the email sent out then appeared with HTML tags. I soon found out that implementing my own "SendContactEMailProcessor" class
probably by extending implementation
and
change PropertyUtil.getString(content, "contactMailBody", PropertyUtil.getString(content, "contentType"+contentType)); for content.getProperty("contentType"+contentType).getValue().getString(); would fix my issue. In short,
adding {{ValueWrapper}} class to
the
issue came from the implementation of PropertyUtil
framework
.
getString().
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------