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

Fixed Wrong fieldname used in Category Dw

Discussion in 'Resource Manager Resolved Bugs' started by xf_phantom, Oct 19, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    Line 170:

    PHP:
    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: Oct 19, 2013
    Daniel Hood likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed, thanks.
     

Share This Page