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 8ac621e commit 80c2e62Copy full SHA for 80c2e62
app/code/Magento/Bundle/Model/Sales/Order/BundleOrderTypeValidator.php
@@ -65,8 +65,8 @@ public function getMessages(): array
65
*/
66
private function canValidate(): bool
67
{
68
- $url = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\Url::class);
+ $request = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\Webapi\Request::class);
69
70
- return str_contains(strtolower($url->getCurrentUrl()), self::SHIPMENT_API_ROUTE);
+ return str_contains(strtolower($request->getUri()->getPath()), self::SHIPMENT_API_ROUTE);
71
}
72
0 commit comments