Skip to content

Commit 809858a

Browse files
committed
MCP-602: Fix failed MFTF test
- Enable Config option & add comment
1 parent f97e92e commit 809858a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Quote/Model/Config.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function __construct(ScopeConfigInterface $config)
3535
*/
3636
public function isEnabled(): bool
3737
{
38-
//return (bool)$this->config->getValue(self::XML_PATH_INVENTORY_CHECK_ENABLED);
39-
return false;
38+
return (bool)$this->config->getValue(self::XML_PATH_INVENTORY_CHECK_ENABLED);
4039
}
4140
}

app/code/Magento/Quote/etc/adminhtml/system.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<field id="enable_inventory_check" translate="label" type="select" sortOrder="60" showInDefault="1" canRestore="1">
1414
<label> Enable Inventory Check On Cart Load</label>
1515
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
16+
<comment>If you disable inventory check, some product out of stock scenarios may fail</comment>
1617
</field>
1718
</group>
1819
</section>

0 commit comments

Comments
 (0)