Fix attachDebug array initialization in setLineItem

Initialize request.attachDebug if not exists before appending

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Pinkyfloyd 2026-03-20 14:47:12 -07:00
parent 3e936728db
commit ca0b99b1c5

View file

@ -431,6 +431,9 @@
<cfelse>
<!--- Log search params for debugging --->
<cfif NOT IsSelected>
<cfif NOT structKeyExists(request, "attachDebug")>
<cfset request.attachDebug = []>
</cfif>
<cfset arrayAppend(request.attachDebug, "DESELECT SEARCH: OrderID=#OrderID#, ParentLI=#ParentLineItemID#, ItemID=#ItemID#")>
<!--- Also check what items exist for this order with this ItemID --->
<cfset qDebug = queryTimed(