Skip to content

Commit aff63b3

Browse files
MAGETWO-72172: [2.3] Disabled variation of configurable product can be added to shopping cart via admin
1 parent 794977a commit aff63b3

File tree

4 files changed

+1
-135
lines changed

4 files changed

+1
-135
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/NoOptionAvailableToConfigureDisabledProductTest.xml

Lines changed: 0 additions & 128 deletions
This file was deleted.

app/code/Magento/Sales/Controller/Adminhtml/Order/Create.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function __construct(
5555
ForwardFactory $resultForwardFactory
5656
) {
5757
parent::__construct($context);
58+
$productHelper->setSkipSaleableCheck(true);
5859
$this->escaper = $escaper;
5960
$this->resultPageFactory = $resultPageFactory;
6061
$this->resultForwardFactory = $resultForwardFactory;

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormConfigureProductSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminOrderFormConfigureProductSection">
12-
<element name="configure" type="button" selector="//a[@product_id='{{productId}}']" parameterized="true"/>
1312
<element name="optionSelect" type="select" selector="//div[contains(@class,'product-options')]//select[//label[text() = '{{option}}']]" parameterized="true"/>
1413
<element name="optionSelectNew" type="select" selector="//label[text()='{{option1}}']/following-sibling::div/select" parameterized="true"/>
1514
<element name="quantity" type="input" selector="#product_composite_configure_input_qty"/>

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithBundleProductTest.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@
7777
<field key="qty">2</field>
7878
</createData>
7979
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
80-
81-
<!--Go to bundle product page and save it to force "in stock" status-->
82-
<actionGroup ref="goToProductPageViaID" stepKey="goToBundleProductPage">
83-
<argument name="productId" value="$product.id$"/>
84-
</actionGroup>
85-
<actionGroup ref="saveProductForm" stepKey="saveBundleProduct"/>
8680
</before>
8781

8882
<!--Create new customer order-->

0 commit comments

Comments
 (0)