sentinel
09-18-2007, 10:12 AM
in pp1.6 (dunno if it still applies to upcoming 1.7 code base) there are 3 missing delete queries
when using the "delete selected" option in the "images" section of the admin panel.
using the "delete" button next to the image (x=delete) removes the corresponding entries from
tags, catassoc and comments table. the "delete selected" option (x=massdelete) _doesn't_.
further massdelete doesn't remove the image and thumbnail files
just a note: you also might think about reordering the delete queries in the single-delete function
as deleting the entry in the pixelpost table prior to the entries in tags,catassoc, comments tables
(which all refer to the id entry of the image in the pixelpost table) might lead to an error
(foreign-key violation) someday.
when using the "delete selected" option in the "images" section of the admin panel.
using the "delete" button next to the image (x=delete) removes the corresponding entries from
tags, catassoc and comments table. the "delete selected" option (x=massdelete) _doesn't_.
further massdelete doesn't remove the image and thumbnail files
just a note: you also might think about reordering the delete queries in the single-delete function
as deleting the entry in the pixelpost table prior to the entries in tags,catassoc, comments tables
(which all refer to the id entry of the image in the pixelpost table) might lead to an error
(foreign-key violation) someday.