nuvoleweb / ui_patterns

[NOTE] Development has moved to https://drupal.org/project/ui_patterns
https://drupal.org/project/ui_patterns
GNU General Public License v2.0
85 stars 56 forks source link

Fix field context for multiple sources in destination #302

Open dulnan opened 4 years ago

dulnan commented 4 years ago

This fixes a bug when a pattern has multiple destinations with multiple sources. The context for every field is always the same, because the context property is set on the same instance during the loop.

My proposed fix is to create a new instance of PatternContext which inherits the properties and then setting the field specific property.