import: skip id if empty string

This commit is contained in:
Yuri Kuznetsov
2024-09-18 13:02:50 +03:00
parent 92d164d3d3
commit 7bcd5b5bdb
+3 -1
View File
@@ -718,7 +718,9 @@ class Import
if ($attribute === 'id') {
if ($action === Params::ACTION_CREATE) {
$entity->set('id', $value);
if ($value !== '') {
$entity->set('id', $value);
}
}
return;