Problem/Motivation

In #2705569: Check for an existing activity before creating new one we want to work with activity revisions and we need a method to check if an activity already has a given contact/participant.
Not sure if this is going to be still valid once we update a data model.

Proposed resolution

Implement a method Activity::hasParticipant() method that should loop over all participants and check if a given one already exists in the list.

CommentFileSizeAuthor
#3 2705571-3.patch2.76 KBsanja_m

Comments

mbovan created an issue. See original summary.

sanja_m’s picture

Assigned: Unassigned » sanja_m

Assigning to me.

sanja_m’s picture

Status: Active » Needs review
StatusFileSize
new2.76 KB

Added patch.

CTaPByK’s picture

Status: Needs review » Reviewed & tested by the community

Looks ok to me.

  • slashrsm committed 8f6a03b on 8.x-1.x authored by sanja_m
    Issue #2705571 by sanja_m, CTaPByK: Implement hasParticipant() on...
slashrsm’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

  • slashrsm committed 8f6a03b on 8.x-2.x authored by sanja_m
    Issue #2705571 by sanja_m, CTaPByK: Implement hasParticipant() on...

Status: Fixed » Closed (fixed)

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