Closed
Description
Preconditions
- Magento ver. 2.2.0
- PHP 7.0.24
Steps to reproduce
- clean install
- create product attribute Multiple Select with id "test_multiselect" and set required values to true
- fill some options values
- create product with previously created multiple select attribute
- save product
- In Adminhtml -> Catalog -> Products grid select product and do massaction "Update attributes"
- click on SAVE
Expected result
- Saving must be processed without error
Actual result
Possible solution
In class method \Magento\Framework\Data\Form\Element\Multiselect::getElementHtml()
add "id" attribute to hidden element
if ($this->getCanBeEmpty()) {
$html .= '<input type="hidden" name="' . parent::getName() . '" value="" />';
}
change to
if ($this->getCanBeEmpty()) {
$html .= '<input type="hidden" id="' . $this->getHtmlId() . '_hidden" name="' . parent::getName() . '" value="" />';
}
see Magento_Catalog view/adminhtml/web/catalog/product.js disableFieldEditMode/enableFieldEditMode methods
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release