tracker issue : CF-4204616

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

cfsetting behavior

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Yuliang R. / ()

Created: 06/20/2019

Components: Language, Page Processing Tags

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.04.314546 / NA

Priority/Frequency: Normal / All users will encounter

Locale/System: / Win 2016

Vote Count: 0

Problem Description:
it's very wierd that somehow the cfsetting is behaving like it's nesting.   we have some invokes of various modules that sometimes lead to 2 different modules setting enableoutputonly=yes.   but we can't cancel them out with a single no.  we have to have matching number of no's

Steps to Reproduce:

1yes
<cfsetting enablecfoutputonly="Yes">
2no
<cfsetting enablecfoutputonly="Yes">
3no
<cfsetting enablecfoutputonly="No">
4yes
<cfsetting enablecfoutputonly="No">
5yes


Actual Result:
1yes
5yes

Expected Result:
1yes
4yes
5yes

Any Workarounds:

Attachments:

Comments:

Hi Yuliang, It is the expected behavior and clearly mentioned in the docs([https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-r-s/cfsetting.html]) :  {code:java} If you nest cfsetting tags: to make HTML output visible, match each enableCFoutputOnly = "Yes" statement with an enableCFoutputOnly = "No" statement. For example, after five enableCFoutputOnly = "Yes" statements, to enable HTML output, you must have five corresponding enableCFoutputOnly = "No" statements. {code}   Thanks, Mukesh
Comment by Mukesh K.
30990 | July 05, 2019 11:15:48 AM GMT
ah my bad. thanks for followup
Comment by Yuliang R.
31000 | July 08, 2019 01:13:26 PM GMT