Closed (fixed)
Project:
Historic Monument Display
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Oct 2006 at 17:46 UTC
Updated:
14 Aug 2007 at 00:18 UTC
When a monument_image is deleted, hook_delete is called and should delete related records in file_revisions, along with other records in other tables.
Problem lies with file_revisions. I have created the attached patch to try to fix this but it is not working. It seems that
$result = db_query('SELECT * FROM {files} WHERE nid = %d', $node->nid);
despite the fact that $node->nid is valid and matches what is present in MySQL database prior to deleting.
Can't see where this is failing as yet.
| Comment | File | Size | Author |
|---|---|---|---|
| monument_image_delete.patch.txt | 2.11 KB | grunthus |
Comments
Comment #1
grunthus commentedFixed in monument_image, v1.5 and monument, v1.13
Comment #2
(not verified) commented