Skip to content

Commit

Permalink
Fixes og on github Gizra#130: EntityMalformedException on save
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-merlin committed Jun 15, 2016
1 parent 07101d2 commit 3cada6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion og.module
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ function og_form_group_reference_validate($form, &$form_state) {

$account = user_load($user->uid);
$bundle = $form['#bundle'];
$entity = $form['#entity'];
$entity = isset($form["#$entity_type"]) ? $form["#$entity_type"] : $form['#entity'];
list($id) = entity_extract_ids($entity_type, $entity);

$op = empty($id) ? 'create' : 'update';
Expand Down

0 comments on commit 3cada6f

Please sign in to comment.