From 8a2033c9f39b69323e53283028e609953db67597 Mon Sep 17 00:00:00 2001 From: Oleksii Korshenko Date: Thu, 15 Jun 2017 13:02:29 -0500 Subject: [PATCH] MAGETWO-69229: Fix depends per group in system.xml #9391 - fixed code style --- lib/web/mage/adminhtml/form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/web/mage/adminhtml/form.js b/lib/web/mage/adminhtml/form.js index ec20ff2b9e324..0053dce8207dd 100644 --- a/lib/web/mage/adminhtml/form.js +++ b/lib/web/mage/adminhtml/form.js @@ -453,8 +453,9 @@ define([ if (target) { inputs = target.up(this._config['levels_up']).select('input', 'select', 'td'); isAnInputOrSelect = ['input', 'select'].indexOf(target.tagName.toLowerCase()) != -1; //eslint-disable-line + if (target.type === 'fieldset') { - var inputs = target.select('input', 'select', 'td'); + inputs = target.select('input', 'select', 'td'); } } else { inputs = false; @@ -534,6 +535,7 @@ define([ if (rowElement == undefined && target) { //eslint-disable-line eqeqeq rowElement = target.up(this._config['levels_up']); + if (target.type === 'fieldset') { rowElement = target; }