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 941b4a4 commit 8848fd2Copy full SHA for 8848fd2
src/app/Library/CrudPanel/Traits/Fields.php
@@ -44,7 +44,8 @@ public function addField($field)
44
45
// if the label is missing, we should set it
46
if (! isset($newField['label'])) {
47
- $newField['label'] = mb_ucfirst(str_replace('_', ' ', $newField['name']));
+ $label = is_array($newField['name']) ? $newField['name'][0] : $newField['name'];
48
+ $newField['label'] = mb_ucfirst(str_replace('_', ' ', $label));
49
}
50
51
// if the field type is missing, we should set it
0 commit comments