Closed (fixed)
Project:
Weight
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2009 at 19:19 UTC
Updated:
9 May 2009 at 15:20 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| weight.patch | 1.83 KB | samuelsov |
Comments
Comment #1
jody lynnI 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.
Comment #2
nancydruCommitted. Thank you for the patch and the test.