Fix OrderLineItemIsDeleted BIT comparison, add debug info
This commit is contained in:
parent
2dcafbbc59
commit
4c06040f41
1 changed files with 4 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ try {
|
|||
FROM OrderLineItems
|
||||
WHERE OrderLineItemOrderID = :orderId
|
||||
AND OrderLineItemParentOrderLineItemID = 0
|
||||
AND OrderLineItemIsDeleted = b'0'
|
||||
AND (OrderLineItemIsDeleted = 0 OR OrderLineItemIsDeleted IS NULL)
|
||||
", { orderId: { value = row.OrderID, cfsqltype = "cf_sql_integer" } });
|
||||
|
||||
itemCount = qItems.ItemCount ?: 0;
|
||||
|
|
@ -154,7 +154,9 @@ try {
|
|||
"OK": false,
|
||||
"ERROR": "server_error",
|
||||
"MESSAGE": "Failed to load order history",
|
||||
"DETAIL": e.message
|
||||
"DETAIL": e.message,
|
||||
"DEBUG_LINE": e.tagContext[1].line ?: 0,
|
||||
"DEBUG_TEMPLATE": e.tagContext[1].template ?: ""
|
||||
});
|
||||
}
|
||||
</cfscript>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue