mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
FilterEditor: Uppercase all words for non labelled filter columns
refs #9029
This commit is contained in:
parent
9faea7c883
commit
97245c5166
@ -512,7 +512,7 @@ class FilterEditor extends AbstractWidget
|
|||||||
$res = array();
|
$res = array();
|
||||||
foreach ($array as $k => $v) {
|
foreach ($array as $k => $v) {
|
||||||
if (is_int($k)) {
|
if (is_int($k)) {
|
||||||
$res[$v] = str_replace('_', ' ', ucfirst($v));
|
$res[$v] = ucwords(str_replace('_', ' ', $v));
|
||||||
} elseif ($flip) {
|
} elseif ($flip) {
|
||||||
$res[$v] = $k;
|
$res[$v] = $k;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user