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

Commit

Permalink
Merge pull request #314 from joachim-n/313-bundle-form-alter-crash
Browse files Browse the repository at this point in the history
Fixed crash on bundle entity add forms
  • Loading branch information
pfrenssen authored Sep 25, 2017
2 parents d423b50 + 2225c8e commit 2c36dc4
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 2c36dc4

Please sign in to comment.