Skip to content

Commit

Permalink
Boolean fields are displayed as "flip switches" by default
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Dec 20, 2015
1 parent ab76b09 commit c6b7f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configuration/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ private function processFieldTemplates(array $entityConfiguration)
// this prevents the template from displaying the 'id' primary key formatted as a number
if ('id' === $fieldName) {
$template = $entityConfiguration['templates']['field_id'];
} elseif (array_key_exists('field_'.$fieldMetadata['type'], $entityConfiguration['templates'])) {
$template = $entityConfiguration['templates']['field_'.$fieldMetadata['type']];
} elseif (array_key_exists('field_'.$fieldMetadata['dataType'], $entityConfiguration['templates'])) {
$template = $entityConfiguration['templates']['field_'.$fieldMetadata['dataType']];
} else {
$template = $entityConfiguration['templates']['label_undefined'];
}
Expand Down

0 comments on commit c6b7f9a

Please sign in to comment.