Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSI: 654: Exception when trying to create Grouped or Bundle product in admin #656

Merged
merged 8 commits into from
Mar 15, 2018

Conversation

RomaKis
Copy link
Contributor

@RomaKis RomaKis commented Mar 13, 2018

$meta[ConfigurablePanel::GROUP_CONFIGURABLE][$children]
[ConfigurablePanel::CONFIGURABLE_MATRIX][$children]
[static::RECORD][$children][static::QUANTITY_CONTAINER] = $this->getQuantityContainerConfig();
if ($this->allowedProductTypes->isAllowedProductType($this->locator->getProduct())) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to use this code for products different from configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because simple, virtual and downloadable product can be converted to configurable.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After moving InventoryConfigurablePanel we can remove this double check

RomaKis added 2 commits March 14, 2018 12:10
# Conflicts:
#	app/code/Magento/InventoryConfigurableProduct/etc/di.xml
@@ -16,8 +18,27 @@
*/
class InventoryConfigurablePanel extends AbstractModifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need to move this to modifier <type name="Magento\ConfigurableProduct\Ui\DataProvider\Product\Form\Modifier\Composite">
And remove AllowedProductTypes check

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naydav done

@@ -16,4 +16,9 @@
</argument>
</arguments>
</virtualType>
<type name="Magento\InventoryConfigurableProduct\Ui\DataProvider\Product\Form\Modifier\InventoryConfigurablePanel">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After moving InventoryConfigurablePanel we can remove this double check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants