diff --git a/api/tasks/getDetails.cfm b/api/tasks/getDetails.cfm index 4a5ee85..557663b 100644 --- a/api/tasks/getDetails.cfm +++ b/api/tasks/getDetails.cfm @@ -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(NULLIF(o.UserID, 0), t.UserID) + LEFT JOIN Users u ON u.ID = COALESCE(NULLIF(o.UserID, 0), NULLIF(t.UserID, 0)) WHERE t.ID = ? ", [ { value = TaskID, cfsqltype = "cf_sql_integer" } ], { datasource = "payfrit" })>