[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grégory Joseph updated MAGNOLIA-3543:
-------------------------------------
Assignee: Ondřej Chytil (was: Philipp Bärfuss)
Fix Version/s: 4.4.3
Priority: Major (was: Neutral)
Thanks for the report Tobias ! Hoping to get this fixed in 4.4.3.
> contentNodeIterator - step attribute fails in some cases
> ---------------------------------------------------------
>
> Key: MAGNOLIA-3543
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3543
> Project: Magnolia
> Issue Type: Bug
> Components: taglibs
> Affects Versions: 4.4.2
> Environment: eclipse, tomcat 6
> Reporter: Tobias Vollprecht
> Assignee: Ondřej Chytil
> Priority: Major
> Fix For: 4.4.3
>
> Attachments: stacktrace.txt
>
>
> following code throws exception errors (please see attached file) when the
> amount of contentNodes cannot be divided by *4* (results in an integer)
> <cms:contentNodeIterator contentNodeCollectionName="contentCollection"
> step="*4*">
> <cms:includeTemplate/>
> </cms:contentNodeIterator>
> if the amount of nodes can be devided by *4*, then iteration with step="4"
> works properly. otherwise it throws an nosuchelementexception. i assume this
> occurs because after the last iteration haschild() is true, but if there are
> only 1,2 or 3 nodes left contentNodeIterator is missing the 4th node. the
> example could be also done with *3* or *5*,*6*,... and it gets more
> complicated if one uses the 'begin' and/or 'end' attribute as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------