Dissapearing Nodes - sort of

midkemia - July 6, 2007 - 12:19
Project:Revision Deletion
Version:5.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

OK not sure where to start

Have nodes that include CCK fields, and wanted to delete old revisions. I display the results of the nodes using a view.

I first found a node i wanted to remove the revisions from, there were 4 revision. checked the aged nodes to be deleted and 3 entries were listed. Looks good so hit go nodes deleted.

The view now shows no nodes. But the node i used still exists as i typed its number, the problem is all CCK fields are now empty, which explains why Views did not detect it. Any idea where to start looking ?

I repeated the exercise and the problem was re-producable

#1

Gman - July 6, 2007 - 17:04

I will look into this immediately. I used the revision deletion hook and callback, but I didn't test it extensively with CCKs. I will see why the CCK information is being deleted.

#2

midkemia - July 6, 2007 - 18:06

If there is any info i can provide that will help, let me know

#3

Gman - July 6, 2007 - 18:36

I have updated the module to explicitly call out the revision for the CCK module hooks.

Can line 211 to

$node = node_load($data->nid, $data->vid);

I have updated the 4.7.x and 5.x branches. Should be repackaged within the hour.

Thanks for bringing this to my attention.

#4

midkemia - July 6, 2007 - 20:07

It appears to work a treat now.

Run it on my test site, ( a backup of the primary) and it knocked off 30mb of old revisions. and everything still appears to be working fine.

Great module

#5

Gman - July 6, 2007 - 20:16
Status:active» closed

Glad to hear it worked. Thanks for the feedback.

 
 

Drupal is a registered trademark of Dries Buytaert.