Fix debug array initialization

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Pinkyfloyd 2026-03-09 10:20:02 -07:00
parent 120930db4c
commit 6af7e22b03

View file

@ -453,7 +453,10 @@
</cfif> </cfif>
<!--- Initialize debug array at start of processing ---> <!--- Initialize debug array at start of processing --->
<cfset request.attachDebug = ["Flow start: qExisting.recordCount=#qExisting.recordCount#, IsSelected=#IsSelected#"]> <cfif NOT structKeyExists(request, "attachDebug")>
<cfset request.attachDebug = []>
</cfif>
<cfset arrayAppend(request.attachDebug, "Flow: qExisting=#qExisting.recordCount#, IsSelected=#IsSelected#, ItemID=#ItemID#, ParentLI=#ParentLineItemID#")>
<cfif qExisting.recordCount GT 0> <cfif qExisting.recordCount GT 0>
<!--- Update existing ---> <!--- Update existing --->