mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
KickstartForm: add 'UTF-8' to array of allowed charsets, to support Postgres
This commit is contained in:
parent
7a2a406edb
commit
eae7a8ab86
@ -197,7 +197,7 @@ class KickstartForm extends DirectorForm
|
|||||||
if ($resourceName = $this->getResourceName()) {
|
if ($resourceName = $this->getResourceName()) {
|
||||||
$resourceConfig = ResourceFactory::getResourceConfig($resourceName);
|
$resourceConfig = ResourceFactory::getResourceConfig($resourceName);
|
||||||
if (! isset($resourceConfig->charset)
|
if (! isset($resourceConfig->charset)
|
||||||
|| ! in_array($resourceConfig->charset, array('utf8', 'utf8mb4'))
|
|| ! in_array($resourceConfig->charset, array('utf8', 'utf8mb4', 'UTF-8'))
|
||||||
) {
|
) {
|
||||||
if ($resource = $this->getElement('resource')) {
|
if ($resource = $this->getElement('resource')) {
|
||||||
$resource->addError('Please change the encoding for the director database to utf8');
|
$resource->addError('Please change the encoding for the director database to utf8');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user