We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce6a5c commit 681714cCopy full SHA for 681714c
app/code/Magento/Customer/Controller/Adminhtml/Group/Save.php
@@ -91,9 +91,7 @@ public function execute()
91
? [] : $this->getRequest()->getParam('customer_group_excluded_websites');
92
$resultRedirect = $this->resultRedirectFactory->create();
93
try {
94
- $requestCode = $this->getRequest()->getParam('code');
95
- $customerGroupCode = is_string($requestCode) ? trim($requestCode) : $requestCode;
96
-
+ $customerGroupCode = trim((string)$this->getRequest()->getParam('code'));
97
if ($id !== null) {
98
$customerGroup = $this->groupRepository->getById((int)$id);
99
$customerGroupCode = $customerGroupCode ?: $customerGroup->getCode();
0 commit comments