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

Commit

Permalink
Fixup! Fix crash on add forms for bundles of content entities that im…
Browse files Browse the repository at this point in the history
…plement bundleFieldDefinitions().
  • Loading branch information
joachim-n committed Sep 21, 2017
1 parent dade213 commit acd1987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion og_access/src/BundleFormAlter.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function formAlter(array &$form, FormStateInterface $form_state) {
$form['og']['og_enable_access'] = [
'#type' => 'checkbox',
'#title' => t('Enable OG access control'),
'#default_value' => $this->bundle ? FALSE : $this->hasAccessControl(),
'#default_value' => $this->bundle ? $this->hasAccessControl() : FALSE,
'#states' => [
'visible' => [
[':input[name="og_is_group"]' => ['checked' => TRUE]],
Expand Down

0 comments on commit acd1987

Please sign in to comment.