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

Behavior for og_membership_delete_action #125

Open
alex-bukach opened this issue May 22, 2016 · 1 comment
Open

Behavior for og_membership_delete_action #125

alex-bukach opened this issue May 22, 2016 · 1 comment

Comments

@alex-bukach
Copy link

(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 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').

alex-bukach added a commit to alex-bukach/og that referenced this issue May 22, 2016
@alex-bukach
Copy link
Author

Fixed in #126

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants