Fix inline entity form, with tests.
Merge branch '7.x-3.x' into fix-permissions