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