Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
212
Issues
212
List
Boards
Labels
Service Desk
Milestones
Merge Requests
34
Merge Requests
34
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
79b26e40
Commit
79b26e40
authored
34 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): correctly save colours & allow empty logo_guid
parent
6b39b7d8
epic/minds-pro
1 merge request
!308
WIP: (feat): Minds Pro
Pipeline
#82761896
failed with stages
in 5 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Manager.php
Core/Pro/Manager.php
+3
-3
No files found.
Core/Pro/Manager.php
View file @
79b26e40
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment