Commit 458945de authored by ultimike's avatar ultimike Committed by amitaibu

Issue #2264759 by paranojik, ultimike, guillaumev | edvanleeuwen: Fixed "Group...

Issue #2264759 by paranojik, ultimike, guillaumev | edvanleeuwen: Fixed "Group audience" field $delta values wrong upon saving group content.
parent ebbfebe3
......@@ -935,7 +935,7 @@ function _og_update_entity_fields($entity_type, $entity) {
else {
$target_type = $field['settings']['target_type'];
$gids = og_get_entity_groups($entity_type, $entity, array(), $field_name);
$gids = !empty($gids[$target_type]) ? $gids[$target_type] : array();
$gids = !empty($gids[$target_type]) ? array_values($gids[$target_type]) : array();
}
if ($gids) {
$wrapper->{$field_name}->set($gids);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment