Problem/Motivation
When you upload an image with the InlineEntityFormMediaWidget, it would be nice if all the mapped fields of the media entity would be already populated.
Proposed resolution
Call Media::prepareSave in submitEdit.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3188665-5.patch | 974 bytes | chr.fritsch |
| #2 | 3188665.patch | 905 bytes | chr.fritsch |
Comments
Comment #2
chr.fritschHere is a patch
Comment #3
chr.fritschComment #4
volkerk commentedprepareSave()is not defined in the interface, add check if entity implements the method before calling it.Comment #5
chr.fritschNow with a check
Comment #6
daniel.bosenI tested the patch in #3188665-5: Execute field mapping before displaying in IEF form. Works fine, and looks good to me
Comment #8
chr.fritschCommitted