We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f44fb1 commit 8afbb73Copy full SHA for 8afbb73
library/Icingadb/Setup/DbResourcePage.php
@@ -58,8 +58,27 @@ public function createElements(array $formData)
58
]
59
);
60
61
+ $charsetElement = $this->getElement('charset');
62
if (! isset($formData['db']) || $formData['db'] === 'mysql') {
- $this->getElement('charset')->setValue('utf8mb4');
63
+ $charsetElement->setValue('utf8mb4')->addDecorator(
64
+ ['preserveDefault' => 'HtmlTag'],
65
+ [
66
+ 'tag' => 'input',
67
+ 'type' => 'hidden',
68
+ 'name' => 'charset' . static::DEFAULT_SUFFIX,
69
+ 'value' => 'utf8mb4'
70
+ ]
71
+ );
72
+ } else {
73
+ $charsetElement->addDecorator(
74
75
76
77
78
79
+ 'value' => ''
80
81
82
}
83
84
0 commit comments