Several people have mentioned this problem with the image_attach module : you can't remove attached images unless you delete them.

I couldn't get the multiple attachment patch (which contains detachment) to work with the v5 version, so I checked out the code and it was very simple fix.

I made this diff from the current release for 5 and its just a few lines of code that checks if their is a '0' on the submitted form and then if so deletes all attached images.

Hope its of use....

Comments

smoothify’s picture

StatusFileSize
new2.23 KB

Here is a combined patch for if you want to use this with my other recent patch that allows limiting images by the current user (http://drupal.org/node/124273)

drewish’s picture

Status: Needs review » Closed (duplicate)

please don't create duplicate issues: http://drupal.org/node/62025