We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f57a30 commit ba9a1b2Copy full SHA for ba9a1b2
app/code/Magento/Eav/Model/Entity/Attribute/Source/Table.php
@@ -10,6 +10,8 @@
10
use Magento\Framework\Escaper;
11
12
/**
13
+ * Eav attribute default source when values are coming from another table
14
+ *
15
* @api
16
* @since 100.0.2
17
*/
@@ -136,12 +138,14 @@ public function getSpecificOptions($ids, $withEmpty = true)
136
138
}
137
139
140
141
+ * Add an empty option to the array
142
143
* @param array $options
144
* @return array
145
146
private function addEmptyOption(array $options)
147
{
- array_unshift($options, ['label' => $this->getAttribute()->getIsRequired() ? '' : ' ', 'value' => '']);
148
+ array_unshift($options, ['label' => ' ', 'value' => '']);
149
return $options;
150
151
0 commit comments