I upgraded my development machine from CF 4.0.1 to 4.5.1 SP2 and my
fusebox apps started acting weird. I could access variables using the
attributes-dot notation but some functions (IsStruct, even IsDefined)
sometimes didn't work. It seemes like the attributes scope wasn't actually
a structure anymore. So I switched from the old formURL2attributes.cfm to
the one that uses 4.5.1 SP2's new StructCopy() funtion. And it worked OK.
I looked some more and saw this at the beginning of the new
formURL2attributes tag:

<cfif NOT IsDefined("caller.attributes")>
   <cfset caller.attributes = StructNew()>
</cfif>

So I put these lines into the old formURL2attributes tag and my app
started working OK again.

It seems that Allaire had a 'predefined' attributes structure in 4.0.1 but
you have to make it yourself using StructNew() in 4.5 (4.5.1 SP2 at
least). Is this right? If it is then I suggest we make that small
modification (see above) to current formURL2attributes tag that's
available from fusebox.org.

Erki


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to