Not a bug Thread container data writer custom not fired

truonglv

Well-known member
Hi.

I have seen that thread container datawriter alway return XenForo_DataWriter_Forum although I have used another node data writer class.

I have created an node_type and have an data writer. While creating thread I use my node_id which have custom container data writer. But my writer not fired when thread saved.

I think the bug comming from:
PHP:
public function getContainerDataWriter($containerId, $errorHandler)
    {
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_Forum', $errorHandler);
        $dw->setExistingData($containerId);
        return $dw;
    }
 
Threads can only exist in forums out of the box. If you're doing something else, you'll need to handle the custom cases.

You'll actually be violating some pretty low level assumptions so I expect that may cause further problems. I'd probably advise you to consider a different approach.
 
Threads can only exist in forums out of the box. If you're doing something else, you'll need to handle the custom cases.

You'll actually be violating some pretty low level assumptions so I expect that may cause further problems. I'd probably advise you to consider a different approach.
I see. Now I have change to use default way for that :)
 
Top Bottom