Active
Project:
Imagefield Crop
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2013 at 00:48 UTC
Updated:
4 Apr 2014 at 10:51 UTC
Jump to comment: Most recent
Steps to reproduce.
1. Make sure the Drupal overlay module is enabled. Or just use the default install profile on a clean install.
2. Create a node with an image frield crop field.
3. Select edit on the node.
4. Select remove on the image field crop widget.
5. Instead of submitting or canceling the form with the buttons at the bottom select the "x" at the top right of the modal overlay.
6. Select edit again on the same node.
After completing these steps the primary image has been deleted and the crop widget only displays the thumbnail. The file should only be deleted on node submit instead of immediately.
Comments
Comment #1
Anonymous (not verified) commentedYep, the original file gets deleted once it is removed and if the user navigates away without adding a new image they are stuck with two cropped images when they come back to edit page. Guess this is major.
Comment #2
jnavane commentedbelow function is processing when we are removing the image at instance
Here I have disabled the if statement ($orig->fid != $element['fid']). So I didn't lose my original image. Is this a right way to fix the issue? I hope this will help.
Comment #3
zschopper commentedIt's simplier to remove/comment out imagefield_crop_widget_delete callback from end of imagefield_crop_widget_process() function:
But with this solution all original files remain on server (form submit deletes only cropped image).