Fixed Wrong fieldname used in Category Dw


Well-known member
Line 170:

if ($this->isInsert() || $this->isChanged('parent_node_id'))
       if ($this->getOption(self::OPTION_REBUILD_CACHE))
         XenForo_Application::defer('Permission', array(), 'Permission', true);
The Resource Category Datawriter doesn't have a parent_note_id field, you've probably forgotten to change it, while you copied the code;)

btw, wouldn't it be better, to throw an error (at least in debugmode), if the field doesn't exist in the fieldlist?
ATM it's really hard to find such problems, because it returns only null/false;)
Last edited: