I promised a little while ago to get back if I found the edge cases making node edit forms to malfunction. I now have some more information on the issue.
It seems that only node form contexts created with arguments can be rendered by Panels – which for me implies that CTools has some problems with context loading. Three cases compared:
* Edit forms added as contexts at the path bugreport/%node-edit – works fine
* Edit forms added with relationships, from a "normal" node context – works bad, output is "Form goes here".
* Edit forms added manually as contexts, by entering a node ID – works bad, output is "Form goes here".
I hope this may shed some light on the issue.
Comment | File | Size | Author |
---|---|---|---|
#1 | node_form_context_bugs.tar_.zip | 2.45 KB | Itangalo |
Comments
Comment #1
Itangalo CreditAttribution: Itangalo commentedShort screencast demonstrating this effect is available at http://vimeo.com/25343432
Feature with the simple setup used in the screencast is attached.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedOk, I finally figured this out.
node_edit_form.inc had been given some recursion prevention logic...that didn't actualy prevent recursion, it prevented the form from being called a second time, period. And in many cases, the context is actually generated twice (which may be an inefficiency I have to investigate all on its own).
I've fixed the recursion logic in both 6.x and 7.x and that should put these problems to bed.
Comment #3
Itangalo CreditAttribution: Itangalo commentedWorks fine on my computer too!
I still have some issues with forms in Page manager, in particular #1139918: Node add/edit-form fails to render when using Panels Everywhere which I will reopen, but those are and will be separate issues. Thanks for great work.