Activity completion does not correctly return in discussion created event

Activity completion does not correctly return in discussion created event

par Dulitha Rajapaksha,
Nombre de réponses : 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?

Moyenne des évaluations  -
En réponse à Dulitha Rajapaksha

Re: Activity completion does not correctly return in discussion created event

par lior gil,
Avatar Core developers
So you want the completion to be set before the event is fired? Seems like a reasonable request.
Maybe you could open an issue about it in the tracker and see if it gets a response.