When new node is published, the prev node of the new node isn't updated and it's missing the new node as next node.

Reproduce steps:
1. set indexing criteria to 'post_date'
2. reindex all content
3. check the latest content (it won't have next content since it's the latest)
4. create a new content that's included in prev/next
5. view the new content and click on prev link
6. check if the content is missing next link (which should be the new content)

I also made the patch for it. please review it.

Thanks,
Ethan

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ethan.han777 created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, 2: prev_next-missing_next_link-2774825-1.patch, failed testing.

The last submitted patch, 2: prev_next-missing_next_link-2774825-1.patch, failed testing.

The last submitted patch, 2: prev_next-missing_next_link-2774825-1.patch, failed testing.

The last submitted patch, 2: prev_next-missing_next_link-2774825-1.patch, failed testing.

ethan.han777’s picture

Status: Needs work » Needs review
marttir’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch! Applied on 2.x-dev, working as advertised.

Reviewer please note that #2 patch was rolled into another patch in #2429187. It might be more convenient to merge.

fordprefect76’s picture

Can you confirm the latest dev version was updated is correctly. When I pull down I am still getting the following version:

version = "7.x-2.0-alpha1+2-dev"

I am going to manual apply the patch for now.

alphawebgroup’s picture

Hi Guys
are there any chance to get this one committed?

jcnventura’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Marking this as duplicate of #2429187: Prev/Next data is not updated when a node becomes unpublished. Someone please review and RTBC that one.