Skip to content

Commit f14b8cc

Browse files
authored
ENGCOM-5763: [EncryptionKey] Fixing the encryption key switching field #24437
2 parents c163aa2 + c32f1dc commit f14b8cc

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/EncryptionKey/Block/Adminhtml/Crypt/Key

1 file changed

+1
-1
lines changed

app/code/Magento/EncryptionKey/Block/Adminhtml/Crypt/Key/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function _prepareForm()
4545
'name' => 'generate_random',
4646
'label' => __('Auto-generate a Key'),
4747
'options' => [0 => __('No'), 1 => __('Yes')],
48-
'onclick' => "var cryptKey = jQuery('#crypt_key'); var cryptKeyBlock = cryptKey.parent().parent(); ".
48+
'onchange' => "var cryptKey = jQuery('#crypt_key'); var cryptKeyBlock = cryptKey.parent().parent(); ".
4949
"cryptKey.prop('disabled', this.value === '1'); " .
5050
"if (cryptKey.prop('disabled')) { cryptKeyBlock.hide() } " .
5151
"else { cryptKeyBlock.show() }",

0 commit comments

Comments
 (0)