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.

  1. File entity saves the the files on first step with the first available entity type specified.
  2. On second step the user can select the entity type, this is put into the form state: $form_state['storage']['type']
  3. On step 4 focal point alters the form and loads the file from the database thus using the temporary entity type
  4. 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-...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thelmer created an issue. See original summary.

thelmer’s picture

thelmer’s picture

thelmer’s picture

thelmer’s picture

Status: Active » Needs review