Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Fixed crash on bundle entity add forms #314

Merged
merged 2 commits into from
Sep 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion og_ui/src/BundleFormAlter.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected function addGroupContent(array &$form, FormStateInterface $form_state)
$form['og']['og_group_content_bundle'] = [
'#type' => 'checkbox',
'#title' => t('Group content'),
'#default_value' => Og::isGroupContent($this->entityTypeId, $this->bundle),
'#default_value' => $this->bundle ? Og::isGroupContent($this->entityTypeId, $this->bundle) : FALSE,
'#description' => empty($target_bundles) ? t('There are no group bundles defined.') : '',
];

Expand Down