Skip to content
Snippets Groups Projects
Commit 20d3a635 authored by Wim Leers's avatar Wim Leers
Browse files

Issue #3469729 by Wim Leers, bnjmnm: Follow-up for #3467712: field instance...

Issue #3469729 by Wim Leers, bnjmnm: Follow-up for #3467712: field instance settings lost in ComponentPropsForm
parent a465c1d4
No related branches found
No related tags found
1 merge request!198#3469729: Follow-up for #3467712: field instance settings lost in ComponentPropsForm
Pipeline #261675 failed
......@@ -129,7 +129,10 @@ final class SdcController extends ControllerBase {
$keyed_choices[$component_prop->propName]['default_values'] = $prop_info['examples'][0] ?? $this->getDefaultValueFromPropInfo($prop_info);
}
if ($storable_prop_shape->fieldStorageSettings !== NULL) {
$keyed_choices[$component_prop->propName]['sourceTypeSettings'] = $storable_prop_shape->fieldStorageSettings;
$keyed_choices[$component_prop->propName]['sourceTypeSettings']['storage'] = $storable_prop_shape->fieldStorageSettings;
}
if ($storable_prop_shape->fieldInstanceSettings !== NULL) {
$keyed_choices[$component_prop->propName]['sourceTypeSettings']['instance'] = $storable_prop_shape->fieldInstanceSettings;
}
}
$assets = AttachedAssets::createFromRenderArray([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment