Skip to content

Commit

Permalink
nuvoleweb#350: Patch PatternDefinitionField constructor to default la…
Browse files Browse the repository at this point in the history
…bel to name if label does not exist.
  • Loading branch information
lhridley authored May 7, 2022
1 parent cd03369 commit 42a41b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Definition/PatternDefinitionField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 42a41b4

Please sign in to comment.