Download & Extend

File Not Deleted When Deleting Node with Multiple Revisions

Project:FileField
Version:6.x-3.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:quicksketch
Status:closed (fixed)

Issue Summary

I'm currently working on a SimpleTest suite which has just revealed the first bug: Deleting a node that contains the same file in multiple revisions does not delete the file. This is because our field_file_references() function doesn't take into account deleting an entire node, it assumes a deletion results in exactly one less reference. When deleting a node with several revisions though, that node may be responsible for multiple references.

AttachmentSize
filefield_delete_node.patch2 KB

Comments

#1

Status:needs review» fixed

Committed.

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here