Status/Resolution/Reason: Closed/Fixed/HaveNewInfo
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff ()
Created: 02/08/2017
Components: Documentation, Language, CFSCRIPT
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: 2016.0.01.298513 / docs
Priority/Frequency: Normal /
Locale/System: / Win All
Vote Count: 0
include does not support runonce
Repro:
index.cfm
--------------------------------------------
cfinclude(template="myinclude.cfm", runonce=false);//works, good
cfinclude(template="myinclude.cfm", runonce=true);//works, good
include "myinclude.cfm" false;//fails, bad
include "myinclude.cfm" true;//fails, bad
myinclude.cfm
--------------------------------------------
a
Actual result: exception
Expected result: aa
If the CF9 language enhancements are going to be supported, then they need to be maintained.
The include keyword should probably support named parameters. Example:
--------------------------------------------
include template="myinclude.cfm" runonce=false;
--------------------------------------------
Attachments:
Comments: