Skip to content

Global & Pattern Data Merge Issue #16

Open
@EvanLovely

Description

@EvanLovely

I'm seeing that if I have some global data that gets merged with pattern specific data that it is preserving far too much of the global data when it should of been overwritten by the local data.

It happens using the Data::getPatternSpecificData function and merges the data at PatternLab/Data.php:262 using array_replace_recursive().

I've broken it down to a simple example you can see here: https://repl.it/qOH/171

Is this intentional? Thoughts on fixes or workarounds @pattern-lab/drupal ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions