|
@@ -14,7 +14,7 @@ |
|
|
block discarded – undo |
|
14
|
14
|
function addOptionsToComponent($data, $componentName) |
|
15
|
15
|
{ |
|
16
|
16
|
// get fields for this component |
|
17
|
|
- $options = array_reduce(array_keys(Options::OPTION_TYPES), function ($carry, $optionType) use ($componentName) { |
|
|
17
|
+ $options = array_reduce(array_keys(Options::OPTION_TYPES), function($carry, $optionType) use ($componentName) { |
|
18
|
18
|
return array_merge($carry, Options::get($optionType, 'Component', $componentName)); |
|
19
|
19
|
}, []); |
|
20
|
20
|
// don't overwrite existing data |
Please login to merge, or discard this patch.