Download & Extend

Node revisions don't work

Project:Rotor Banner
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

This module provides a node type that doesn't doesn't work with drupal's node revision system.

The rotor_item table should also have a vid column, which would be the primary key and would be used to link to nodes.
nid would want to be an index though.

Each time a node is saved you would do an insert into rotor_item instead of update or insert (Unless empty($node->revision), in which case it is an update or insert).

Your views functionality will also have to be changed to join on vid instead of nid.

I guess this could be thought of as a feature request but seeing as you are providing a node type it should work as other drupal node types do so technically it is a bug.

Comments

#1

It will also need an implementation of hook_update_N() to add the vid to any existing rows of the rotor_item table.

nobody click here