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

Comments

Gman’s picture

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.

Anonymous’s picture

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

Gman’s picture

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.

Anonymous’s picture

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

Gman’s picture

Status: Active » Closed (fixed)

Glad to hear it worked. Thanks for the feedback.