Needs review
Project:
Paragraphs Defaults
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2015 at 15:05 UTC
Updated:
22 Dec 2023 at 10:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rv0 commentedConfirmed. Will see what I can do.
Comment #2
programeta commentedHi,
I reviewed the problem and with this fix the problem is solved.
Regards,
Comment #3
jkopel commentedRan into this same issue and the patch in #2 works for me.
Thanks @programeta!
Comment #4
chrisfromredfinI found the same thing, but yet another scenario. It seems like the module is a bit overzealous in its understanding of when to provide the default, not that I'm sure what entirely can be done about it.
In my example, I'm use node_clone to clone a node from another node (this works correctly with paragraph entities). However, my defaults are set instead of the ones I'm cloning from.
I couldn't think of a way to selectively call the form alter hook, except to fake it out with a lower-weighted form_alter and fake a $form_state['input'] or something. So I found this issue and a similar fix works for me:
...I'm not convinced this is exactly the right thing, but I'm not sure what other options there are.
Comment #5
prudloff commentedI had the same problem as #4 when using paragraphs_defaults with the clone module.
Here is a patch that can be used to apply the fix.