Skip to content

Commit fc3f258

Browse files
author
Mykola Palamar
committed
MAGETWO-72181: [2.1.x] [Magento Cloud] Unable to remove custom attributes from the "Forms to Use in"
1 parent ada41e1 commit fc3f258

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Multiselect.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function getElementHtml()
5959
if ($this->getCanBeEmpty()) {
6060
$html .= '<input type="hidden" name="' . parent::getName() . '" value="" />';
6161
}
62+
if (!empty($this->_data['disabled'])) {
63+
$html .= '<input type="hidden" name="' . parent::getName() . '_disabled" value="" />';
64+
}
65+
6266
$html .= '<select id="' . $this->getHtmlId() . '" name="' . $this->getName() . '" ' . $this->serialize(
6367
$this->getHtmlAttributes()
6468
) . $this->_getUiId() . ' multiple="multiple">' . "\n";

0 commit comments

Comments
 (0)