Fix missing datasource in addresses/list.cfm and LIKE on INT column in setDefault.cfm
- list.cfm: add missing datasource: "payfrit" parameter to queryExecute - setDefault.cfm: change AddressTypeID LIKE '%2%' to AddressTypeID = 2 (INT column) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3dc15f8c13
commit
e30a757c39
2 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ try {
|
|||
ORDER BY a.IsDefaultDelivery DESC, a.ID DESC
|
||||
", {
|
||||
userId: { value = userId, cfsqltype = "cf_sql_integer" }
|
||||
});
|
||||
}, { datasource: "payfrit" });
|
||||
|
||||
addresses = [];
|
||||
for (row in qAddresses) {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ try {
|
|||
SET IsDefaultDelivery = 0
|
||||
WHERE UserID = :userId
|
||||
AND (BusinessID = 0 OR BusinessID IS NULL)
|
||||
AND AddressTypeID LIKE '%2%'
|
||||
AND AddressTypeID = 2
|
||||
", {
|
||||
userId: { value: userId, cfsqltype: "cf_sql_integer" }
|
||||
}, { datasource: "payfrit" });
|
||||
|
|
|
|||
Reference in a new issue