Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
og
Commits
bf78bc70
Commit
bf78bc70
authored
Mar 24, 2014
by
amitaibu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Issue
#2220575
by ezra-g: Avoid Entity's load() method when saving group reference values."
This reverts commit
7670b660
.
parent
723b37ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
og.module
og.module
+3
-3
No files found.
og.module
View file @
bf78bc70
...
...
@@ -929,9 +929,9 @@ function _og_update_entity_fields($entity_type, $entity) {
}
}
else
{
$target_type
=
$field
[
'settings'
][
'target_type'
];
$gids
=
og_
get_entity_groups
(
$entity_type
,
$entity
,
array
(
OG_STATE_ACTIVE
),
$field_name
)
;
$gids
=
!
empty
(
$gids
[
$target_type
])
?
$gids
[
$target_type
]
:
array
();
foreach
(
$wrapper
->
{
$field_name
.
'__og_membership'
}
->
value
()
as
$og_membership
)
{
$gids
[]
=
$
og_
membership
->
gid
;
}
}
if
(
$gids
)
{
$wrapper
->
{
$field_name
}
->
set
(
$gids
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment