[ http://jira.magnolia.info/browse/MAGNOLIA-971?page=all ]
Fabrizio Giustina updated MAGNOLIA-971:
---------------------------------------
Fix Version/s: 3.0 Final
(was: 2.1 Final)
(was: 3.0 RC3)
> CLONE -ifEmpty is not working properly
> --------------------------------------
>
> Key: MAGNOLIA-971
> URL: http://jira.magnolia.info/browse/MAGNOLIA-971
> Project: magnolia
> Issue Type: Bug
> Reporter: Yves-Marie DANIEL
> Assigned To: Fabrizio Giustina
> Priority: Minor
> Fix For: 3.0 Final
>
>
> from an email:
> i noticed some strange things with the core cms tags "ifNotEmpty" and
> "ifEmpty"...
> i have a content element 'textTitle', which has content set. so it's not
> empty (at least to my understanding :-) )
> i have following test code:
> nodeData 'textTitle' = <cms:out nodeDataName="textTitle" />
> <cms:ifNotEmpty nodeDataName="textTitle" >
> <br><cms:out nodeDataName="textTitle" /> --> from 'if not empty'
> </cms:ifNotEmpty>
> <cms:ifEmpty nodeDataName="textTitle" >
> <br><cms:out nodeDataName="textTitle" /> --> from 'if empty'
> </cms:ifEmpty>
> the surprising result:
> nodeData 'textTitle' = A line of Text
> A line of Text --> from 'if empty'
> i expect that i should get "A line of Text --> from 'if NOT empty'
> why that? i am not using a collection or so. simply a "top level" content
> element.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------