mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix global settings array validate messages (#11199)
This commit is contained in:
@@ -193,7 +193,7 @@ class DynamicConfigItem implements \ArrayAccess
|
||||
public function getValidationMessage($value)
|
||||
{
|
||||
return $this->validate
|
||||
? implode(" \n", $this->buildValidator($value)->messages()->get('value'))
|
||||
? implode(" \n", $this->buildValidator($value)->messages()->all())
|
||||
: __('settings.validate.' . $this->type, ['id' => $this->name, 'value' => json_encode($value)]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user