File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
app/code/Magento/Eav/Model/EavCustomAttributeTypeLocator Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,14 @@ class SimpleType
28
28
*/
29
29
public function getType ($ attribute )
30
30
{
31
- if (in_array ($ attribute ->getAttributeCode (), $ this ->anyTypeAttributes )) {
31
+ $ arrayFrontendInputs = ['multiselect ' ];
32
+ $ frontendInput = $ attribute ->getFrontendInput ();
33
+ if (in_array ($ attribute ->getAttributeCode (), $ this ->anyTypeAttributes )
34
+ || in_array ($ frontendInput , $ arrayFrontendInputs )
35
+ ) {
32
36
return TypeProcessor::NORMALIZED_ANY_TYPE ;
33
37
}
34
- $ frontendInput = $ attribute -> getFrontendInput ();
38
+
35
39
$ backendType = $ attribute ->getBackendType ();
36
40
$ backendTypeMap = [
37
41
'static ' => TypeProcessor::NORMALIZED_ANY_TYPE ,
@@ -41,11 +45,6 @@ public function getType($attribute)
41
45
'datetime ' => TypeProcessor::NORMALIZED_STRING_TYPE ,
42
46
'decimal ' => TypeProcessor::NORMALIZED_DOUBLE_TYPE ,
43
47
];
44
- $ arrayFrontendInputs = ['multiselect ' ];
45
- $ type = $ backendTypeMap [$ backendType ];
46
- if (in_array ($ frontendInput , $ arrayFrontendInputs )) {
47
- $ type .= '[] ' ;
48
- }
49
- return $ type ;
48
+ return $ backendTypeMap [$ backendType ];
50
49
}
51
50
}
You can’t perform that action at this time.
0 commit comments