Activity completion does not correctly return in discussion created event

Activity completion does not correctly return in discussion created event

от Dulitha Rajapaksha -
Number of replies: 1

I have a forum which has activity completion settings as below.



As per the image after posting the second discussion or reply the activity should get marked as completed. But when I am inside the discussion_created or post_created event, when submitting the second discussion or forum, I check the activity completion and it returns as 0. But when I am trying the same with the 3rd post it returns the activity as completed. Basically the activity completion gets marked as 1 only after the event has fired. Is there a way to get the correct activity completion inside the created event of discussion or post?

It should return 1 in the created event when I am posting my second post but it only returns 1 after the event of the second post has fired. Is there a way to get that correctly?