I believe that ever since I installed the Weight module, all nodes are forced "sticky". Even if I uncheck "sticky", a node is saved as sticky.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | weight.module.patch | 664 bytes | rstamm |
I believe that ever since I installed the Weight module, all nodes are forced "sticky". Even if I uncheck "sticky", a node is saved as sticky.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | weight.module.patch | 664 bytes | rstamm |
Comments
Comment #1
Julien PHAM commentedI have the same problem with the cvs version... very disturbing...
Comment #2
moshe weitzman commentedyes, thats how it works. sorry. you will probably have to remove the syling in the theme for sticky since all nodes are sticky.
Comment #3
jjeff commentedI will look into this. The sticky flag should be set (or unset) during node load process. So while this problem may turn out to be unavoidable, it is not by design.
I'll see what I can do.
-Jeff
Comment #4
4p commentedToday I installed the weight.module v 1.12 and getting the same problem
After some investigation I found the '$node->sticky = (-1*$node->weight) + 100' and '$node->sticky = (-1*$node->weight) - 100' actions get applied twice so all nodes end up sticky.
I solved this by removing 'case 'validate':' on line 89 to fix the problem.
I don't know if the 'if ($_POST['op'] == t('Submit'))' check is needed for 4.6 under 4.7 it's not so I also removed line 91 and the closing bracket on line 112
Jos
Comment #5
4p commentedJos
Comment #6
rstamm commentedThis patch works fine on my drupal site.
Comment #7
alkhulaifi commentedI think there is no need to validate in this form operation. so by removing the validate case the module will work fine.
Comment #8
Max Bell commentedNice catch. I wouldn't have noticed except that I couldn't seem to set a background color for stickies in my theme CSS that didn't change the background color of ALL my nodes, which led me to suspect I was going crazy...
Comment #9
harry slaughteri don't see this behavior using weight v1.12 and drupal 4.7.3.
is this actually a 4.6 bug only?
Comment #10
harry slaughterThis behavior does not exhibit in 4.7.2 using weight 1.12 - closing