Skip to content

Commit 8cbbd56

Browse files
committed
MC-33856: Stabilize Integration Tests
1 parent f9ded1d commit 8cbbd56

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ public function execute()
194194
$attributeCode = $model && $model->getId()
195195
? $model->getAttributeCode()
196196
: $this->getRequest()->getParam('attribute_code');
197-
$attributeCode = $attributeCode ?: $this->generateCode($this->getRequest()->getParam('frontend_label')[0]);
197+
$frontendLabel = $this->getRequest()->getParam('frontend_label')[0] ?? null;
198+
$attributeCode = $attributeCode ?: $this->generateCode($frontendLabel);
198199
$data['attribute_code'] = $attributeCode;
199200

200201
//validate frontend_input

app/code/Magento/Wishlist/Model/LocaleQuantityProcessor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ public function __construct(
4343
public function process($qty)
4444
{
4545
$this->localFilter->setOptions(['locale' => $this->localeResolver->getLocale()]);
46-
$qty = $this->localFilter->filter($qty);
46+
$qty = $this->localFilter->filter((string)$qty);
4747
if ($qty < 0) {
4848
$qty = null;
4949
}
50+
5051
return $qty;
5152
}
5253
}

0 commit comments

Comments
 (0)