-
Notifications
You must be signed in to change notification settings - Fork 248
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
Conversation
$meta[ConfigurablePanel::GROUP_CONFIGURABLE][$children] | ||
[ConfigurablePanel::CONFIGURABLE_MATRIX][$children] | ||
[static::RECORD][$children][static::QUANTITY_CONTAINER] = $this->getQuantityContainerConfig(); | ||
if ($this->allowedProductTypes->isAllowedProductType($this->locator->getProduct())) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
# Conflicts: # app/code/Magento/InventoryConfigurableProduct/etc/di.xml
@@ -16,8 +18,27 @@ | |||
*/ | |||
class InventoryConfigurablePanel extends AbstractModifier |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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
Fixed Issues (if relevant)