Closed (fixed)
Project:
Revisioning
Version:
7.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
8 Feb 2014 at 01:06 UTC
Updated:
14 Mar 2014 at 03:30 UTC
Jump to comment: Most recent
Hello,
revisioning module attempts to put the proper VID on the right side here:
// Make sure that latest of the two revisions is on the right.
if ($node->current_revision_id > $node->vid) {
return diff_diffs_show($node, $node->current_revision_id, $node->vid);
}
return diff_diffs_show($node, $node->vid, $node->current_revision_id);
However, the usage of diff_diffs_show() is diff_diffs_show($node, $old_vid, $new_vid, $state = NULL), so the old VID should come first. The current logic is backwards. Flipping the operator from > to < corrects this problem.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| revisioning.module.diff.patch | 551 bytes | entendu |
Comments
Comment #1
rdeboerPatch applied with attritbution.
Thanks entendu.
Rik