You get the cookie today ... sheesh ... I looked and looked through that thing and welp that was the problem. I removed:
<cfset temp = ArrayAppend(request.catalog_list, request.catalog_list[request.count])> Thanks for opening my eyes ... as I was reading it went clear ... funny how that works! Paul Giesenhagen QuillDesign > > <cfparam name="request.count" default="0"> > > <cfset request.count = request.count + 1> > > > > <!--- add the path from the index to this location in the > > tree in front of the name of this sub-object ---> > > <cfset variables.thisitempath = > > "#attributes.path#/#getChildren.title#"> > > <cfset request.catalog_list[request.count] = StructNew()> > > <cfset request.catalog_list[request.count].tree = > > variables.thisitempath> > > <cfset request.catalog_list[request.count].id = > > getChildren.sub_object> > > > <!--- Add an item to our list of catalog departments ---> > > <cfset temp = ArrayAppend(request.catalog_list, > > request.catalog_list[request.count])> > > > <!--- call this file again, but this time tell it to > > take a look at the next level down. if there's > > anything under this department, it will get added to > > the tree in sequence. ---> > > > <cf_catdump owner="#sub_object#" > > path="#variables.thisitempath#"> > > It may be just me, but it looks to me like the <cfset temp = > ArrayAppend(request.catalog_list,request.catalog_list[request.count])> is > extraneous... You're appending the last item in the array to the array? So > it's actually duplicating each item in turn, then the next item replaces the > last item in the list and gets duplicated again... So at the end only that > last item is duplicated. If you remove that arrayappend, I bet that will fix > it. That or create the new structure as a separate local variable and then > append that local strucutre. > > hth > > Isaac > Certified Advanced ColdFusion 5 Developer > > www.turnkey.to > 954-776-0046 > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

