Solved $thread.getTypeHandler() might not return correct handler

This topic has been solved
K

Kirby

Guest
When calling $thread.getTypeHandler() from template thread_type_fields_article the returned handler might not be ArticleHandler but the default handler of the forum (if the forum allows multiple types).

This is pretty confusing and also unfortunate if specific handler methods need to be accessed.

One possible solution could be to pass $this as handler to the template so it can be accessed without calling getHandler().
Another approach could be to make...

Read more

Continue reading...