Skip to content

Commit bbd5612

Browse files
author
Anna Bukatar
committed
ACP2E-2647: Scheduling Product updates clean multiselect attributes with ArrayBackend backend
1 parent c119c82 commit bbd5612

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Backend/ArrayBackend.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,18 @@ public function validate($object)
5858

5959
/**
6060
* Prepare attribute values
61+
*
62+
* @param array $data
63+
* @return string
6164
*/
6265
private function prepare(array $data): string
6366
{
6467
return implode(
6568
',',
6669
array_filter(
6770
array_unique($data),
68-
fn($value) => is_numeric($value) || !empty($value))
71+
fn($value) => is_numeric($value) || !empty($value)
72+
)
6973
);
7074
}
7175
}

0 commit comments

Comments
 (0)