Fix submit.cfm: remove ServicePoints join that was causing column name errors

This commit is contained in:
John Pinkyfloyd 2026-02-09 16:32:00 -08:00
parent add65346c9
commit d2985e193a

View file

@ -141,12 +141,10 @@
<cftry> <cftry>
<cfset qOrder = queryTimed( <cfset qOrder = queryTimed(
" "
SELECT o.ID, o.StatusID, o.OrderTypeID, o.BusinessID, o.ServicePointID, SELECT ID, StatusID, OrderTypeID, BusinessID, ServicePointID,
o.GrantID, o.GrantOwnerBusinessID, GrantID, GrantOwnerBusinessID
sp.Name AS Name FROM Orders
FROM Orders o WHERE ID = ?
LEFT JOIN ServicePoints sp ON sp.ID = o.ServicePointID
WHERE o.ID = ?
LIMIT 1 LIMIT 1
", ",
[ { value = OrderID, cfsqltype = "cf_sql_integer" } ], [ { value = OrderID, cfsqltype = "cf_sql_integer" } ],