Skip to content

Commit

Permalink
BAP-13519: Selectors are available after saving setting with fallback…
Browse files Browse the repository at this point in the history
… (#8569)

- form field type, post submit listener fix
  • Loading branch information
Dmitrii Shykalenko authored and Grygir committed Mar 15, 2017
1 parent 776d2fb commit 5a5a982
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Oro/Bundle/ConfigBundle/Form/Type/FormFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ function (FormEvent $event) {
FormEvents::POST_SUBMIT,
function (FormEvent $event) {
$form = $event->getForm()->getParent();
$data = $event->getForm()->getData();
$disabled = isset($data['use_parent_scope_value']) ? $data['use_parent_scope_value'] : false;
$disabled = $event->getForm()->getData();
FormUtils::replaceField($form, 'value', ['disabled' => $disabled]);
}
);
Expand Down

0 comments on commit 5a5a982

Please sign in to comment.