Steps to reproduce:

* Make view of activities
* Using VBO, configure to allow Assign and Unassign actions
* When performing VBO action, SQL can be observed inserting the new activity assignee
* CiviCRM calls entity_save("civicrm_activity", Object(CivicrmEntity)) on the activity being updated
* This CiviCRM API makes an SQL query INSERT IGNORE which restores the previous assignment

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xurizaemon created an issue. See original summary.

xurizaemon’s picture

xurizaemon’s picture

Status: Active » Needs review

Keen to think about how this could be unit tested - it seems like a pretty straightforward case to demonstrate how we could unit test CiviCRM Entity, but we need to get our heads around bootstrapping tests that may depend on a particular DB config ...

  • xurizaemon committed c718e48 on 7.x-2.x
    Issue #2806041: Activity assign and unassign not working as expected
    
markusa’s picture

Assigned: Unassigned » xurizaemon
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.