Skip to content

Commit 1c9532d

Browse files
ENGCOM-1967: Don't force enable 'Use system value' checkboxes #16000
- Merge Pull Request #16000 from aitoc/magento2:fix-system-config-use-config-disable - Merged commits: 1. 58f223a
2 parents 38d7977 + 58f223a commit 1c9532d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/web/mage/adminhtml/form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,8 @@ define([
494494
inputs.each(function (item) {
495495
// don't touch hidden inputs (and Use Default inputs too), bc they may have custom logic
496496
if ((!item.type || item.type != 'hidden') && !($(item.id + '_inherit') && $(item.id + '_inherit').checked) && //eslint-disable-line
497-
!(currentConfig['can_edit_price'] != undefined && !currentConfig['can_edit_price']) //eslint-disable-line
497+
!(currentConfig['can_edit_price'] != undefined && !currentConfig['can_edit_price']) && //eslint-disable-line
498+
!item.id.endsWith('_inherit')
498499
) {
499500
item.disabled = false;
500501
jQuery(item).removeClass('ignore-validate');

0 commit comments

Comments
 (0)