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 <noreply@anthropic.com>
This commit is contained in:
parent
3089f84873
commit
8696e3002f
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ try {
|
||||||
userID: { value: userID > 0 ? userID : javaCast("null", ""), cfsqltype: "cf_sql_integer", null: userID == 0 },
|
userID: { value: userID > 0 ? userID : javaCast("null", ""), cfsqltype: "cf_sql_integer", null: userID == 0 },
|
||||||
categoryID: { value: categoryID, cfsqltype: "cf_sql_integer" },
|
categoryID: { value: categoryID, cfsqltype: "cf_sql_integer" },
|
||||||
orderID: { value: orderID > 0 ? orderID : javaCast("null", ""), cfsqltype: "cf_sql_integer", null: orderID == 0 },
|
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" },
|
title: { value: taskTitle, cfsqltype: "cf_sql_varchar" },
|
||||||
details: { value: taskDetails, cfsqltype: "cf_sql_varchar" }
|
details: { value: taskDetails, cfsqltype: "cf_sql_varchar" }
|
||||||
}, { datasource: "payfrit" });
|
}, { datasource: "payfrit" });
|
||||||
|
|
|
||||||
Reference in a new issue