diff --git a/api/businesses/saveBrandColor.cfm b/api/businesses/saveBrandColor.cfm index 4dd641b..a31c2ae 100644 --- a/api/businesses/saveBrandColor.cfm +++ b/api/businesses/saveBrandColor.cfm @@ -52,7 +52,7 @@ queryExecute(" SET BusinessBrandColor = :color WHERE BusinessID = :bizId ", { - color: { value: len(brandColor) ? brandColor : "", null: !len(brandColor), cfsqltype: "cf_sql_varchar" }, + color: { value: brandColor, cfsqltype: "cf_sql_varchar" }, bizId: { value: bizId, cfsqltype: "cf_sql_integer" } }, { datasource: "payfrit" }); diff --git a/portal/menu-builder.html b/portal/menu-builder.html index 16ff966..3e97bc5 100644 --- a/portal/menu-builder.html +++ b/portal/menu-builder.html @@ -3022,7 +3022,7 @@
- +
`; @@ -3080,7 +3080,7 @@ if (data.OK) { this.brandColor = color; document.getElementById('brandColorSwatch').style.background = color; - this.hideModal(); + this.closeModal(); this.toast('Brand color saved!', 'success'); } else { this.toast(data.MESSAGE || 'Failed to save color', 'error');