Skip to content

Commit 35f7400

Browse files
committed
issue dpi#152: Fixed EventType::getIdentityTypeEntityFormMode() should return a form mode string.
1 parent b9537f2 commit 35f7400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/EventType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function setIdentityTypeCreate($entity_type, $bundle, $enabled) {
211211
*/
212212
public function getIdentityTypeEntityFormMode($entity_type, $bundle) {
213213
$key = $this->getIdentityTypeKey($entity_type, $bundle);
214-
return !empty($this->people_types[$key]['entity_form_mode']);
214+
return !empty($this->people_types[$key]['entity_form_mode']) ? $this->people_types[$key]['entity_form_mode'] : 'default';
215215
}
216216

217217
/**

0 commit comments

Comments
 (0)