Commit 79b26e40 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): correctly save colours & allow empty logo_guid

1 merge request!308WIP: (feat): Minds Pro
Pipeline #82761896 failed with stages
in 5 minutes and 26 seconds
......@@ -232,7 +232,7 @@ class Manager
}
$settings
->setPrimaryColor(StringValidator::isHexColor($values['primary_color']));
->setPrimaryColor($values['primary_color']);
}
if (isset($values['plain_background_color'])) {
......@@ -240,7 +240,7 @@ class Manager
throw new \Exception('Plain background color must be a valid hex color');
}
$settings
->setPlainBackgroundColor(StringValidator::isHexColor($values['plain_background_color']));
->setPlainBackgroundColor($values['plain_background_color']);
}
if (isset($values['tile_ratio'])) {
......@@ -252,7 +252,7 @@ class Manager
->setTileRatio($values['tile_ratio']);
}
if (isset($values['logo_guid'])) {
if (isset($values['logo_guid']) && $values['logo_guid'] !== '') {
$image = $this->entitiesBuilder->single($values['logo_guid']);
// if the image doesn't exist or the guid doesn't correspond to an image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment