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.

#2 file_entity-1995294-2.patch950 bytesmauritsl
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]
file_entity-file-add-overlay-fix.patch974 bytesPaul Lomax
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch file_entity-file-add-overlay-fix.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]


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
new950 bytes
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]

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.