foundeo / toscript

Converts Tag based CFML to CFML Script
GNU General Public License v3.0
20 stars 9 forks source link

Unimplemented condition: cfloop on a list #6

Closed mjhagen closed 7 years ago

mjhagen commented 7 years ago

This code couldn't be converted:

<cfloop list="#defaultSort#" index="orderByPart">
  <cfset orderByString = listAppend( orderByString, "mainEntity.#orderByPart#" ) />
</cfloop>

Probably because CF9 doesn't support for..in on lists I think.

pfreitag commented 7 years ago

I think that is due to using index instead of item if so, easy fix