From 8696e3002fdd38f102860bf1bd388983f9a1feed Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Fri, 6 Feb 2026 17:25:15 -0800 Subject: [PATCH] Fix callServer.cfm TaskTypeID null constraint error TaskTypeID column is NOT NULL, so insert 0 instead of NULL when no TaskTypeID is provided. Co-Authored-By: Claude Opus 4.5 --- api/tasks/callServer.cfm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tasks/callServer.cfm b/api/tasks/callServer.cfm index ed4bbdc..e898be9 100644 --- a/api/tasks/callServer.cfm +++ b/api/tasks/callServer.cfm @@ -152,7 +152,7 @@ try { userID: { value: userID > 0 ? userID : javaCast("null", ""), cfsqltype: "cf_sql_integer", null: userID == 0 }, categoryID: { value: categoryID, cfsqltype: "cf_sql_integer" }, orderID: { value: orderID > 0 ? orderID : javaCast("null", ""), cfsqltype: "cf_sql_integer", null: orderID == 0 }, - taskTypeID: { value: taskTypeID > 0 ? taskTypeID : javaCast("null", ""), cfsqltype: "cf_sql_integer", null: taskTypeID == 0 }, + taskTypeID: { value: taskTypeID, cfsqltype: "cf_sql_integer" }, title: { value: taskTitle, cfsqltype: "cf_sql_varchar" }, details: { value: taskDetails, cfsqltype: "cf_sql_varchar" } }, { datasource: "payfrit" });