Activity completion does not correctly return in discussion created event

Activity completion does not correctly return in discussion created event

av Dulitha Rajapaksha -
Antal svar: 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?

Medeltalet av utvärderingarna: -
Som svar till Dulitha Rajapaksha

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

av lior gil -
Bild av 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.
Medeltalet av utvärderingarna: -