Problem/Motivation
When deleting nodes, in webform_localization_webform_component_delete, if a node has no translations and components are syncing, then a foreach() would receive a NULL to iterate on and a PHP Notice will occur:
Invalid argument supplied for foreach() in webform_localization/webform_localization.module line 195
Proposed resolution
Wrap the code in if ($translations) {}
Remaining tasks
Provide patch for 4.x
User interface changes
None
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | webform_localization-2397109-5.patch | 1.34 KB | joseph.olstad |
Comments
Comment #1
asgorobets commentedComment #2
asgorobets commentedComment #5
joseph.olstad4x now, probably same issue, patch should still apply, btw, this is a duplicate but there's two patches, this one looks simpler. try this.
Comment #6
joseph.olstad4x now, probably same issue, patch should still apply, btw, this is a duplicate but there's two patches, this one looks simpler.
same patch as patch 1 , just re uploading to trigger 4x simpletest
Comment #9
joseph.olstadThanks asgorobets