I'm trying to track down exactly why this is happening, but it seems to have started after I upgraded to the last version that came out on the 22nd of June.
There were some other odd things that occurred also. For instance, one of the parent node fields disappeared. Have you had reports of anything like this? Everything was working great before this. Let me know if you need to look at the database or anything. I'm just starting to look through that now.
A little background on how this is all set up. I am using the Relativity module to create the relationships between the parent node of "proposal" which represents a proposal someone is submitting to present a session at our annual conference and the child nodes of presenters. There is also a "review" child node, but only Presenters are used with Subforms, and there is a One (parent) to Many (child) relationship.
Even when you do preview before actually submitting the form, you can see that it puts the child node title in both the parent and the child node title. Editing after the fact also does not help.
I think I will try unhooking the forms and then hooking them back up to see what happens.
Please let me know if you have insight into this issue.
Thanks,
TC
This is somewhat critical as we are using it to collect around 200 session proposals for our annual conference that is coming up.
Comments
Comment #1
bsuttis commentedI can confirm that on a fresh install of 5.7 with latest versions of Node Relativity, Subform Element, and Related Subforms that when adding a node with a subform related node that the subform's node title replaces that of its parent.
Also, after creating the initial node and creating another subnode, going back and editing the parent node presents only the latest attached subnode on the edit screen and will not let me update anything, providing the error message 'This content has been modified by another user, changes cannot be saved'. This happens even if no form values are changed.
Comment #2
Tamar Badichi-Levy commentedThe title replacement is caused by the
#data_separation' => TRUEparameter in the subform. This parameter is used to enable upload fields in the subform. I think you have two possibilities:1. use another field with a unique name to set the title of the subform or parent form using the 'auto_nodetitle' module.
2. use hook_form_alter to change this parameter to FALSE.
Please let me know is this helps.
bsuttis, please create another issue for the second problem.
Best wishes,
ofir.
Comment #3
toddchris commentedSo this was fixed in the latest release?
Comment #4
Tamar Badichi-Levy commented#data_separation' => TRUEis important for using upload fields in your subform element. I have added it in the last release. I guess you cannot enjoy all worlds ): please use a different field as the title field and hide the field with 'auto_nodetitle' module.Comment #5
momper commentedhello
i have the same problem - and if it's a principle problem of architecture - would it be possible to make it configurable in the admin area (uploads yes -no -> hook_form_alter yes - no) as a workaround?
thanks and greetings momper