Jaxel
Well-known member
I am extending the thread entity with the following class:
Pretty simple. If the statement is true, force the discussion view to an "article". This is working fine.
However, when I am using the inline-editor on the first post of said article thread, when I click save, instead of returning the post in the article format, it returns it as a general discussion thread format, with the user signature instead of the author info block. Is there a reason why this function is not firing during an inline-edit?
PHP:
public function canView(&$error = null)
{
if (***true***)
{
$this->forceSetDiscussionType('article');
}
return parent::canView($error);
}
Pretty simple. If the statement is true, force the discussion view to an "article". This is working fine.
However, when I am using the inline-editor on the first post of said article thread, when I click save, instead of returning the post in the article format, it returns it as a general discussion thread format, with the user signature instead of the author info block. Is there a reason why this function is not firing during an inline-edit?