File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Catalog/Model/Product/Price/Validation
Customer/Controller/Adminhtml/Group Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -475,13 +475,15 @@ private function retrieveGroupValue(string $code)
475
475
$ item = array_shift ($ items );
476
476
477
477
if (!$ item ) {
478
+ $ this ->customerGroupsByCode [$ code ] = false ;
478
479
return false ;
479
480
}
480
481
481
482
$ itemCode = $ item ->getCode ();
482
483
$ itemId = $ item ->getId ();
483
484
484
485
if ($ itemCode !== $ code ) {
486
+ $ this ->customerGroupsByCode [$ code ] = false ;
485
487
return false ;
486
488
}
487
489
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ public function execute()
91
91
? [] : $ this ->getRequest ()->getParam ('customer_group_excluded_websites ' );
92
92
$ resultRedirect = $ this ->resultRedirectFactory ->create ();
93
93
try {
94
- $ customerGroupCode = trim ((string )$ this ->getRequest ()->getParam ('code ' ));
94
+ $ requestCode = $ this ->getRequest ()->getParam ('code ' );
95
+ $ customerGroupCode = is_string ($ requestCode ) ? trim ($ requestCode ) : $ requestCode ;
95
96
96
97
if ($ id !== null ) {
97
98
$ customerGroup = $ this ->groupRepository ->getById ((int )$ id );
You can’t perform that action at this time.
0 commit comments