Here is a patch to compute weight only on nodes that we want weight on it.
Without this, I have problem with advanced forum where the sticky value is not computed and is still 100 or -100. I don't know exactly why. Maybe the sticky value is fetched with a query instead of using a node_load.
Anyway, i don't think it's necessary to compute the weight for every content type.

CommentFileSizeAuthor
weight.patch1.83 KBsamuelsov

Comments

jody lynn’s picture

Status: Active » Reviewed & tested by the community

I had a similar problem:
Enabled weight and turned it on for a few content types. Blog content type, which was not weight-enabled, was still affected for new posts. New posts got a sticky of -100 in the db, which caused them to go to the end of the list on the default blog module listings.
Patch works and looks good to me.

nancydru’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you for the patch and the test.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.