Problem/Motivation

When the Smart date field is attached to a paragraph, when saving the resuring information the entity and the bundle are set to the attached entity node and the node bundle) instead of the paragraph and it's bundle.

This seems to be because of the way paragraphs are embeded into the form and not being using subforms.

Issue fork smart_date-3547560

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gordon created an issue. See original summary.

gordon’s picture

Status: Active » Needs review

I have made changes to the SmartDateWidgetBase::massageFormValues() so instead of getting the entity type and bundle from the form object, but instead uses the field instance entity and bundle, which gets around the issue storing the rrule connected to the node instead of the paragraph.