Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a site with multiple file entity types matching an uploaded file focal point use the saved entity type and not the value from the upload multistep form.
- File entity saves the the files on first step with the first available entity type specified.
- On second step the user can select the entity type, this is put into the form state: $form_state['storage']['type']
- On step 4 focal point alters the form and loads the file from the database thus using the temporary entity type
- If the temporarily set entity type don't have focal point enabled, the focal point widget don't get displayed.
The solution in my patch is to do like the file_entity module: http://cgit.drupalcode.org/file_entity/tree/file_entity.pages.inc?h=7.x-...
Comment | File | Size | Author |
---|---|---|---|
#2 | focal_point-file_entity_type_on_upload-2822183-1-D7.patch | 572 bytes | thelmer |
Comments
Comment #2
thelmer CreditAttribution: thelmer commentedComment #3
thelmer CreditAttribution: thelmer at Adapt commentedComment #4
thelmer CreditAttribution: thelmer at Adapt commentedComment #5
thelmer CreditAttribution: thelmer at Adapt commented