Skip to main content
Participant
Feb 11, 2013 9:42 PM UTC
Question

ListRest with includeEmptyValues gives unexpected result

I believe I've encountered a bug in Coldfusion 9 and 10.  Whenever includeEmptyValues (the third parameter) of ListRest is set to true it appears to return the entire list with no elements removed.

I've verified this behaviour with the following test.

<CFSET olst = 'a quick red fox jumped over the lazy brown dog'>

<CFSET rlst = ListRest(olst, ' ', true)>

<CFDUMP var="#rlst#">

The result is "a quick red fox jumped over the lazy brown dog".

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Inspiring
    Feb 11, 2013 10:10 PM UTC

    Yep, it was reported over two years ago, and Adobe - apparently - don't have enough time to fix it. Which is disappointing, given how easy it must be to fix.

    https://bugbase.adobe.com/index.cfm?event=bug&id=3041684

    --

    Adam

    Translate
    Participant
    Feb 12, 2013 1:05 PM UTC

    Thank you Adam, I wasn't aware that Adobe had a public bugtracker.

    Translate