Fix column name in listAllTypes: tt_TaskTypeID -> ID
The tt_TaskTypes table uses 'ID' not 'tt_TaskTypeID'. This was causing "Failed to load services" in the portal. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e8705287cc
commit
d628f7eb50
1 changed files with 3 additions and 3 deletions
|
|
@ -45,16 +45,16 @@ try {
|
||||||
// Get task types for this business
|
// Get task types for this business
|
||||||
q = queryTimed("
|
q = queryTimed("
|
||||||
SELECT
|
SELECT
|
||||||
tt_TaskTypeID as TaskTypeID,
|
ID as TaskTypeID,
|
||||||
Name as TaskTypeName,
|
Name as TaskTypeName,
|
||||||
Description as TaskTypeDescription,
|
Description as TaskTypeDescription,
|
||||||
Icon as TaskTypeIcon,
|
Icon as TaskTypeIcon,
|
||||||
Color as TaskTypeColor,
|
Color as TaskTypeColor,
|
||||||
SortOrder as SortOrder,
|
SortOrder,
|
||||||
TaskCategoryID as CategoryID
|
TaskCategoryID as CategoryID
|
||||||
FROM tt_TaskTypes
|
FROM tt_TaskTypes
|
||||||
WHERE BusinessID = :businessID
|
WHERE BusinessID = :businessID
|
||||||
ORDER BY SortOrder, tt_TaskTypeID
|
ORDER BY SortOrder, ID
|
||||||
", {
|
", {
|
||||||
businessID: { value: businessID, cfsqltype: "cf_sql_integer" }
|
businessID: { value: businessID, cfsqltype: "cf_sql_integer" }
|
||||||
}, { datasource: "payfrit" });
|
}, { datasource: "payfrit" });
|
||||||
|
|
|
||||||
Reference in a new issue