Closed postMadeVisible does not function correctly when undeleting a post and changing it's position

Xon

Well-known member
Licensed customer
Affected version
2.2.16
This function has this this statement:

PHP:
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 of #1 will also have a position of 2.
 
Automated triage: Not a bug

Thank you for reporting this issue. This report is over two years old and nothing since confirms it. In the current code, undeleting a post and moving it from position 1 to 2 gives correct positions, and nothing in XenForo itself changes a post's position while undeleting it. If you can still reproduce this on the current version, please open a new report with steps.

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom