[
https://issues.apache.org/jira/browse/SLING-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler updated SLING-328:
-----------------------------------
Component/s: Scripting
> access to node props in esp
> ---------------------------
>
> Key: SLING-328
> URL: https://issues.apache.org/jira/browse/SLING-328
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Michael Marth
>
> My .esp looks like
> for (var i in currentNode.getNodes()) {
> if(currentNode.getNodes()[i].getProperty("approved").getString()
> == "true") {
> ...
> Bertrand tells me that in the second line this should work as well:
> if(currentNode.getNodes()[i].approved (...)
> It does not give an exception but the property is undefined.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.