Not a bug Incorrect column name in repository ContentVote::findContentVotes

Painbaker

Well-known member
Affected version
2.2.4
Param named as $voteId but uses vote date column in finder

PHP:
    /**
     * @param string $contentType
     * @param int $contentId
     *
     * @param null $voteId
     * @return Finder
     */
    public function findContentVotes(string $contentType, $contentId, $voteId = null)
    {
        ...
        if ($voteId)
        {
            $finder->where('vote_date', $voteId);
        }

        return $finder;
    }
 
I'm unable to locate this code in XF.

Are you sure it is from XF code that is unmodified? Could it be from a different version?
 
Back
Top Bottom