This took (way too long) to track down but I found the cause of why I was having my forms redirect without creating the nodes included in a group. I downloaded the latest dev and was able to cause this, this is the only fix that I found:
The problem:
-Space_og has a submit handler that is added into the group node form called spaces_og_form_group_submit
-For context see http://api.acquia.com/api/open_atrium/profiles--openatrium--modules--con...
-Effectively, allowing this to fire will cause issues with any module who's nodeapi sets the frontpage paths for the associated space because the submit handler looks for those values being set and then firing a purl_goto which breaks the submission flow.
This was a similar issue that was originally identified in workflow_purl that I'd resolved to block the redirect from happening prematurely.
Resolution:
Reordering the keys doesn't work, you simply need to kill off spaces_og_form_group_submit when cloning. I accomplished this in elms in a hook_form_alter in the following commit: https://github.com/btopro/elms/commit/e2b1fe61b377fbf8f951559e44e417f072...
Not saying this should be part of spaces_og_clone because it's an issue with things setting the frontpage value but it probably wouldn't hurt as the function doesn't really do anything.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | spaces_og_clone-killbadsubmithandler-1423000-2.patch | 1.17 KB | btopro |
| #3 | spaces_og_clone-killbadsubmithandler-1423000-1.patch | 1.38 KB | btopro |
| #2 | spaces_og_clone-killbadsubmithandler-1423000.patch | 1.38 KB | btopro |
Comments
Comment #1
hefox commentedSince that submit is only going to cause trouble, I say might as well purge it on spaces_og_clon
Comment #2
btopro commentedpatch to fix issue. I tested this in my dev setup after moving this code from the elms function into the spaces_og_clone equivalent
Comment #3
btopro commentedi'm dumb, rerolling without tabs
Comment #4
btopro commentedultra-embarrassing... wrong file
Comment #5
hefox commentedSeems like it'd work, but:
That could be simplified with a simple array_search
array_values is probably a bad idea and isn't needed; some modules add their submit handles with a non-numeric key so others can do ^ above with just an unset (automodal is one I know of).
Comment #6
btopro commentedchanged patch to the method you provided, that's a much easier way of doing what I had in the patch. committed