Skip to content

Commit 681714c

Browse files
committed
#36431: Undefined index in TierPriceValidator.php
- fixed issue with undefined index customer group for changing tier price
1 parent cce6a5c commit 681714c

File tree

1 file changed

+1
-3
lines changed
  • app/code/Magento/Customer/Controller/Adminhtml/Group

1 file changed

+1
-3
lines changed

app/code/Magento/Customer/Controller/Adminhtml/Group/Save.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ public function execute()
9191
? [] : $this->getRequest()->getParam('customer_group_excluded_websites');
9292
$resultRedirect = $this->resultRedirectFactory->create();
9393
try {
94-
$requestCode = $this->getRequest()->getParam('code');
95-
$customerGroupCode = is_string($requestCode) ? trim($requestCode) : $requestCode;
96-
94+
$customerGroupCode = trim((string)$this->getRequest()->getParam('code'));
9795
if ($id !== null) {
9896
$customerGroup = $this->groupRepository->getById((int)$id);
9997
$customerGroupCode = $customerGroupCode ?: $customerGroup->getCode();

0 commit comments

Comments
 (0)