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

_getMessageIdsInDiscussion()

Discussion in 'Resolved Bug Reports' started by Syndol, Jul 1, 2013.

  1. Syndol

    Syndol Guest

    In the Discussion DataWriter you have the following function which should return an array of message Ids:
    PHP:
    protected function _getMessageIdsInDiscussion()
    {
        return 
    array_keys($this->_getDiscussionMessages(false));
    }
    However, in the Thread DataWriter you extend this function as follows:
    PHP:
    protected function _getMessageIdsInDiscussion()
    {
        return 
    $this->_getPostModel()->getPostsInThreadSimple($this->get('thread_id'), false);
    }
    The extended function no longer returns just the message Ids.
    There is no need to extend.
     
    Shelley likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed for the next beta, thanks.
     
    Syndol likes this.

Share This Page