diff --git a/src/Definition/PatternDefinitionField.php b/src/Definition/PatternDefinitionField.php index be33e402..64bb5571 100644 --- a/src/Definition/PatternDefinitionField.php +++ b/src/Definition/PatternDefinitionField.php @@ -35,7 +35,7 @@ public function __construct($name, $value) { } else { $this->definition['name'] = !isset($value['name']) ? $name : $value['name']; - $this->definition['label'] = $value['label']; + $this->definition['label'] = !isset($value['label']) ? $this->definition['name'] : $value['label']; $this->definition = $value + $this->definition; } }