Namely when using the overlay module, the ID's of submit buttons can vary. i.e if you have 3 forms on the page then the ID of the submit button becomes edit-submit--2.

The 'file add' form explicitly checks for 'edit-submit', if it doesn't match the form will never save. Attached is a patch to fix this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, file_entity-file-add-overlay-fix.patch, failed testing.

mauritsl’s picture

Status: Needs work » Needs review
FileSize
950 bytes

Rerolled patch with latest rev.

aaron’s picture

Status: Needs review » Reviewed & tested by the community

I am unable to reproduce the original issue, but looking at the code it seems sound. Additionally, running it doesn't break the site.

aaron’s picture

#2: file_entity-1995294-2.patch queued for re-testing.

aaron’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.