You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Sergiy Kovalchuk (JIRA)" <de...@velocity.apache.org> on 2010/05/18 22:51:44 UTC
[jira] Created: (VELOCITY-763) $foreach.isLast() is always false
$foreach.isLast() is always false
---------------------------------
Key: VELOCITY-763
URL: https://issues.apache.org/jira/browse/VELOCITY-763
Project: Velocity
Issue Type: Bug
Components: Engine
Affects Versions: 1.7-beta1
Reporter: Sergiy Kovalchuk
$foreach.isLast() is not detecting last element.
Test case:
#foreach($i in [1..3])
$foreach.isLast()<br/>
#end
Result:
false
false
false
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Resolved: (VELOCITY-763) $foreach.isLast() is always false
Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Bubna resolved VELOCITY-763.
-----------------------------------
Fix Version/s: 1.7
2.0
Resolution: Fixed
Technically, it was already fixed in 2.0, but i added a test to keep an eye on it.
> $foreach.isLast() is always false
> ---------------------------------
>
> Key: VELOCITY-763
> URL: https://issues.apache.org/jira/browse/VELOCITY-763
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.7-beta1
> Reporter: Sergiy Kovalchuk
> Fix For: 1.7, 2.0
>
>
> $foreach.isLast() is not detecting last element.
> Test case:
> #foreach($i in [1..3])
> $foreach.isLast()<br/>
> #end
> Result:
> false
> false
> false
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org