Merge pull request #10153 from annando/extid-update

Fix: The "extid" field wasn't updated
This commit is contained in:
Hypolite Petovan 2021-04-18 09:20:40 -04:00 committed by GitHub
commit 1c246f2593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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