• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Invalid model call in category watch

wang

Well-known member
#1
Path to the file: XenResource_DataWriter_CategoryWatch

I think that XenForo_Model_CategoryWatch should be: XenResource_Model_CategoryWatch at the following bit of code:

PHP:
/**
     * @return XenResource_Model_CategoryWatch
     */
    protected function _getCategoryWatchModel()
    {
        return $this->getModelFromCache('XenForo_Model_CategoryWatch');
    }
 

Mike

XenForo developer
Staff member
#2
Fixed now thanks. This can be worked around by passing in the existing data as "trusted" (which means fetching it for yourself). This is how all of the built in code handles it, hence it isn't triggered by default.