- Affected version
- 2.3.0
When calling
This is pretty confusing and also unfortunate if specific handler methods need to be accessed.
One possible solution could be to pass
Another approach could be to make sure the thread actually has
$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 sure the thread actually has
discussion_type
article
before rendering the tempate.