mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ThemeSettingsValidator.validate_value returning wrong error (#25901)
Why this change? Before this change, the error messages returned when validating theme settings of typed objects was an array of array instead of just an array.
This commit is contained in:
committed by
GitHub
parent
52a4912475
commit
18ca3d373d
@@ -52,7 +52,7 @@ class ThemeSettingsValidator
|
||||
translation_prefix: "string",
|
||||
)
|
||||
when types[:objects]
|
||||
errors.push(
|
||||
errors.concat(
|
||||
ThemeSettingsObjectValidator.validate_objects(schema: opts[:schema], objects: value),
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user