Fix CFML hash escape in station save default color
## in CFML strings is required for literal # characters. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7205962873
commit
a2ed13981e
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
<cfset BusinessID = val( structKeyExists(data,"BusinessID") ? data.BusinessID : 0 )>
|
<cfset BusinessID = val( structKeyExists(data,"BusinessID") ? data.BusinessID : 0 )>
|
||||||
<cfset StationID = val( structKeyExists(data,"StationID") ? data.StationID : 0 )>
|
<cfset StationID = val( structKeyExists(data,"StationID") ? data.StationID : 0 )>
|
||||||
<cfset Name = trim( structKeyExists(data,"Name") ? data.Name : "" )>
|
<cfset Name = trim( structKeyExists(data,"Name") ? data.Name : "" )>
|
||||||
<cfset Color = trim( structKeyExists(data,"Color") ? data.Color : "#666666" )>
|
<cfset Color = trim( structKeyExists(data,"Color") ? data.Color : "##666666" )>
|
||||||
|
|
||||||
<cfif BusinessID LTE 0>
|
<cfif BusinessID LTE 0>
|
||||||
<cfset apiAbort({ "OK": false, "ERROR": "missing_businessid", "MESSAGE": "BusinessID is required." })>
|
<cfset apiAbort({ "OK": false, "ERROR": "missing_businessid", "MESSAGE": "BusinessID is required." })>
|
||||||
|
|
|
||||||
Reference in a new issue