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

Commit

Permalink
Simplify condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
joachim-n committed Sep 21, 2017
1 parent 0b7e4b9 commit 2225c8e
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' => empty($this->bundle) ? FALSE : 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 2225c8e

Please sign in to comment.