Closed (fixed)
Project:
Nodereference Count
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2010 at 07:20 UTC
Updated:
26 Apr 2010 at 01:50 UTC
Due to the nature of this module, the module weight should be set to a higher number to allow the hook_nodeapi implementation to run after the nodereference field.
Currently it can run before, which means that when a node is saved and the counts are calculated the current node will not be included. This also causes problems for the delete and insert operations as the field value hasn't been set yet.
Here is a simple patch to rectify this.
| Comment | File | Size | Author |
|---|---|---|---|
| nodereference_count_install.patch | 1.43 KB | smoothify |
Comments
Comment #1
gilgabar commentedThanks, my limited testing hadn't caught this case. I will review the patch as soon as I have a chance.
Comment #2
gilgabar commentedPatch looks good. Committed to HEAD and should be available in a dev release shortly.