Needs review
Project:
CCK Blocks
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2011 at 16:20 UTC
Updated:
16 Jul 2011 at 13:16 UTC
Jump to comment: Most recent file
When using the revisioning module and cck blocks together, it can happen that a field value from the wrong node revision is displayed.
Setup:
Steps to reproduce:
node/NID you'll notice that the CCK field and your node content are out of syncnode/NID/revisions/VID/view, you'll see node content and the cck field correctlyDigging in the code, I found that cck_blocks calls $node = menu_get_object(); to determine the current node. This doesn't reliably determine the correct VID as revisioning does also show revisions which are not published yet.
I'd be glad if someone could give feedback on the patch, I'll provide.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | field_value_from_wrong_revision-1171004-1.patch | 953 bytes | organicwire |
Comments
Comment #1
organicwire commentedHere's a patch which solved this issue for me.
Comment #2
organicwire commentedComment #3
organicwire commentedI just wondered if someone could review my fix. Is there any info i can provide to support a review?