Hi,

I'm getting the error below when I'm cloning a Webform node that does not contain any fields, only the attached webform information.

Warning: Invalid argument supplied for foreach() in paragraphs_form_node_form_alter() (line 29 of [..]/paragraphs/paragraphs.node_clone.inc).

Solution: add a simple isset() before the foreach checking if the fields parameter is set (unless empty() has preference).

Comments

sanderjp created an issue. See original summary.

sanderjp’s picture

Issue summary: View changes
jstoller’s picture

Status: Needs review » Closed (outdated)

In an effort to cleanup the Paragraphs issue queue I'm closing this ticket and marking it "outdated." If you find this is still a problem with the latest Paragraphs 7.x-1.x-dev release than feel free to reopen the issue.