tracker issue : CF-4204053

select a category, or use search below
(searches all categories and all time range)
Title:

Listappend does not return the list unchanged when you add an empty string

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Oliver N. / ()

Created: 02/27/2019

Components: Language, Functions

Versions: 2016,13.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: Updater 7, Updater 8, Updater 9 / 314086

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 0

Problem Description:

Documentation:
Listappend returns

A copy of the list_,_ with value appended. If value = "", returns a copy of the list, unchanged.

Listappend does not return the list unchanged when you add an empty string! It returns a "," appended

Steps to Reproduce:

{code:java}
<cfset list = "test">
<cfset list = listappend(list, "")>
<cfoutput>---#list#</cfoutput>
{code}


Actual Result:
test,
Expected Result:
test
Any Workarounds:
Do not append empty values to listappend

Attachments:

Comments: