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

Painbaker

Well-known member
Licensed customer
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?
 
Woops.
Sorry.
This was my hard-coded tweak directly in XF class which i forgot to remove.

Can be closed.
 
Back
Top Bottom