Fix: The "extid" field wasn't updated

This commit is contained in:
Michael 2021-04-18 07:08:16 +00:00
parent a6eeb7af11
commit 15caf4b3f7

View file

@ -150,6 +150,10 @@ class Item
return false; return false;
} }
if (!empty($fields['extid']) && empty($fields['external-id'])) {
$fields['external-id'] = ItemURI::getIdByURI($fields['extid']);
}
if (!empty($fields['verb'])) { if (!empty($fields['verb'])) {
$fields['vid'] = Verb::getID($fields['verb']); $fields['vid'] = Verb::getID($fields['verb']);
} }