﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
650	ColdFusion 'config' Struct Attributes Not Parsed Correctly	topodian@…		"Ran into a few bugs with the ColdFusion code that
parsed the config struct.

1. In fckeditor.cfm, the ampersand isn't inserted
between name=""value"" statements for the hidden config
form field.

Its a simple fix:


{{{
sConfig = sConfig & ""&"" & HTMLEditFormat(
fieldName ) & '=' & HTMLEditFormat( fieldValue );
}}}


2. Again in fckeditor.cfm, the isBoolean() test to
convert ""yes/no"" to ""true/false"" will also convert a value
such as ""649"" to ""true"". For example
the ""ImageBrowserWindowWidth"" was being set
to ""true"" for me.

Again a simple fix:


{{{
if( isBoolean(fieldValue) and NOT isNumeric(fieldValue)
and fieldValue ) fieldValue = ""true"";
else if( isBoolean( fieldValue) and NOT isNumeric
(fieldValue) ) fieldValue = ""false"";
}}}


Basically I just added ""AND NOT isNumeric(fieldValue)"".
----
Moved from SF:[[BR]]
http://sourceforge.net/tracker/index.php?func=detail&aid=1159115&group_id=75348&atid=543653"	Bug	new	Normal		General			SF	hkramer@…
