You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.
OG actions do not set behavior parameter key used by VBO (see e.g. https://www.drupal.org/node/2052067). In this case VBO uses default behavior value array('changes_property').
However when an action has changes_property behavior, VBO re-saves the entity after executing the action.
I.e. for og_membership_delete_action action VBO tries to re-save a membership entity after having deleted it. Though it doesn't re-creates the membership entity, it causes executing hook_og_membership_update() which is confusing.
Proposed solution
Set behavior for og_membership_delete_action explicitly to array('deletes_property').
The text was updated successfully, but these errors were encountered:
(Duplicate of https://www.drupal.org/node/2730291)
Problem/motivation
OG actions do not set
behavior
parameter key used by VBO (see e.g. https://www.drupal.org/node/2052067). In this case VBO uses default behavior valuearray('changes_property')
.However when an action has
changes_property
behavior, VBO re-saves the entity after executing the action.I.e. for
og_membership_delete_action
action VBO tries to re-save a membership entity after having deleted it. Though it doesn't re-creates the membership entity, it causes executinghook_og_membership_update()
which is confusing.Proposed solution
Set behavior for
og_membership_delete_action
explicitly toarray('deletes_property')
.The text was updated successfully, but these errors were encountered: