RSS Feed/News postMadeVisible does not function correctly when undeleting a post and changing it's position

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,830
Points
823

Reputation:

This function has this this statement:

PHP:

Code:
protected function postMadeVisible()
{
if ($this->isChanged('position'))
    {
// if we've updated the position, we need to trust what we had is accurate...
       $basePosition = $this->getExistingValue('position');
    }

Suppose the post position updates from 1 => 2, and it was made visible. This will result in multiple posts with position value of 2.

The newly made visible post will have a position of 2 and the post with a previous position...

Read more

Continue reading...
 
Status
Not open for further replies.
Top