File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Eav/Model/Entity/Attribute/Source Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Store \Model \StoreManagerInterface ;
10
10
11
11
/**
12
+ * Eav attribute default source when values are coming from another table
13
+ *
12
14
* @api
13
15
* @since 100.0.2
14
16
*/
@@ -127,12 +129,14 @@ public function getSpecificOptions($ids, $withEmpty = true)
127
129
}
128
130
129
131
/**
132
+ * Add an empty option to the array
133
+ *
130
134
* @param array $options
131
135
* @return array
132
136
*/
133
137
private function addEmptyOption (array $ options )
134
138
{
135
- array_unshift ($ options , ['label ' => $ this -> getAttribute ()-> getIsRequired () ? '' : ' ' , 'value ' => '' ]);
139
+ array_unshift ($ options , ['label ' => ' ' , 'value ' => '' ]);
136
140
return $ options ;
137
141
}
138
142
You can’t perform that action at this time.
0 commit comments