Skip to content

Commit a5f800c

Browse files
likemusicmage2pratik
authored andcommitted
Don't disable "Use default" inputs according to comment above
1 parent 8c227d5 commit a5f800c

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)