Closed (fixed)
Project:
Weight
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Jun 2009 at 20:23 UTC
Updated:
29 Sep 2009 at 17:40 UTC
Jump to comment: Most recent file
When node_save is called multiple times all nodes are made sticky. This happens when using workflow/triggers and node_save_action is called. As a result weight_nodeapi is called twice with $op "presave", the first call works as expected while the second always makes the node sticky.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | weight-498042.patch | 843 bytes | halstead |
Comments
Comment #1
halstead commentedThis tiny change has fixed the problem for me but I don't know what other issues may be caused. Basically I'm preventing double encoding by only testing for sticky values of 0 or 1. If the sticky value is already -100, 100, -94, 94, or any "weighted" number no change is made.
Comment #2
dmudie commentedThanks halstead. I was seeing this too with a workflow trigger publishing action (node_save_action). Your patch seems to work for me.
Comment #3
nancydruThanks for the patch. In the future, mark it as "Needs review" and assign it to yourself.
@dmudie: You could have marked it as "Reviewed and tested".
Committed to 6.x-1.x-dev.
Comment #4
halstead commentedThanks for the tip NancyDru. I've reviewed the issue queue handbook. Hopefully I will be more helpful to maintainers now. :)