In order to get Auto nodetitle work with IEF (see #1719948: Integration with inline entity form) it is needed the node controller to call node_submit and hook_node_submit.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1719956-4-am.patch | 1.29 KB | jherencia |
| #4 | 1719956-4.patch | 953 bytes | jherencia |
| #2 | 1719956-2.patch | 786 bytes | jherencia |
| #2 | 1719956-2-am.patch | 1.15 KB | jherencia |
| #1 | 1719956-1-am.patch | 1.14 KB | jherencia |
Comments
Comment #1
jherencia commentedComment #2
jherencia commentedI've fixed a bug in the previous patch.
Comment #3
bojanz commentedBlurgh, D7 still has some crappy code.
You're passing $form_state to hook_node_submit, that's the form state of the parent form, not of the embedded node form.
That won't work for obvious reasons (autonodetitle uses $form_state['values']['title'], for example).
Perhaps just construct a fake form state that contains just values:
and hope that works?
Comment #4
jherencia commentedYou are right.
Comment #5
bojanz commentedCommitted.
Comment #6
bojanz commentedClosing issue.
Comment #8
aitala commentedHi,
I think I'm still having an issue with Auto nodetitle and IEF - I'm still getting the node title field showing up, when it should be hidden, and being required.
I can complete the IEF form, but the new node comes back with no title. If I edit it, still no title.
The only things that 'works' is to add the node containing the IEF, then go back and edit the IEF node. If that makes sense.
E