Pass content when getting poll input

TickTackk

Well-known member
In XF\Helper\Poll::getPollInput() we currently do not have access to the content for which the poll is being created or at least the content type. if creating a poll for content that does not exist yet like threads, it would be nice to pass forum (read: container).

Maybe something like a context would be a better solution but I'm not completely sure.

Knowing for which content/content-type/container we are creating the poll for we can add content type-specific values to the input and they will be saved automagically in various places like drafts and pre-registration service.

Thank you for coming to my ted talk.
 
Last edited:
Upvote 6
Top