Closed (fixed)
Project:
Manual Crop
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2015 at 11:15 UTC
Updated:
2 Jan 2018 at 14:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Chris CharltonStill an issue?
Comment #3
trackleft2It appears as though a workaround is to install file_entity_revisions (https://www.drupal.org/project/file_entity_revisions) since the culprit causing this is this line in the manualcrop.module.
As part of
function manualcrop_field_attach_submit($entity_type, $entity, $form, &$form_state)MAkes sense that it breaks the functionality since the file_entity_edit form is told to skip saving using
manualcrop_croptool_submit($form, $form_state);The whole submit function is here with the key line being
manualcrop_save_crop_data(file_load($fid), $data['styles']);:BTW I did install file_entity_revisions on my site and was able to save crops for an image field on video file_entities.
Also if I comment out the condition that skips the submit function this also works.
Comment #4
trackleft2I am adding this for my install profile, may not work with file_entity_revisons
Comment #5
joegraduate@trackleft2 I wonder if, rather than removing the code that skips saving the crop on the
file_entity_editform, it would be better to make that code conditional depending on if the file_entity_revisions module exists?Comment #6
trackleft2Comment #7
trackleft2Comment #8
trackleft2Comment #10
matthijsI've merged the 2 if's into one and committed the patch, thanks!