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:
John Mizerek 2026-03-02 16:49:07 -08:00
parent 7205962873
commit a2ed13981e

View file

@ -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." })>