Skip to content

Commit e8fdcda

Browse files
author
Stanislav Idolov
authored
ENGCOM-1967: Don't force enable "Use system value" checkboxes #16000
2 parents a1b41fe + 1c9532d commit e8fdcda

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)