Fix customer lookup - treat UserID 0 as NULL
This commit is contained in:
parent
14c9336025
commit
c1edb20e53
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@
|
|||
LEFT JOIN Businesses b ON b.ID = t.BusinessID
|
||||
LEFT JOIN ServicePoints sp ON sp.ID = o.ServicePointID
|
||||
LEFT JOIN ServicePoints tsp ON tsp.ID = t.ServicePointID
|
||||
LEFT JOIN Users u ON u.ID = COALESCE(t.UserID, o.UserID)
|
||||
LEFT JOIN Users u ON u.ID = COALESCE(NULLIF(t.UserID, 0), o.UserID)
|
||||
WHERE t.ID = ?
|
||||
", [ { value = TaskID, cfsqltype = "cf_sql_integer" } ], { datasource = "payfrit" })>
|
||||
|
||||
|
|
|
|||
Reference in a new issue