Skip to content

Commit

Permalink
issue dpi#152: Fixed EventType::getIdentityTypeEntityFormMode() shoul…
Browse files Browse the repository at this point in the history
…d return a form mode string.
  • Loading branch information
MegaChriz committed Sep 29, 2017
1 parent b9537f2 commit 35f7400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/EventType.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function setIdentityTypeCreate($entity_type, $bundle, $enabled) {
*/
public function getIdentityTypeEntityFormMode($entity_type, $bundle) {
$key = $this->getIdentityTypeKey($entity_type, $bundle);
return !empty($this->people_types[$key]['entity_form_mode']);
return !empty($this->people_types[$key]['entity_form_mode']) ? $this->people_types[$key]['entity_form_mode'] : 'default';
}

/**
Expand Down

0 comments on commit 35f7400

Please sign in to comment.