Load all item data types before migrating Extra fields on schema update

https://forums.zotero.org/discussion/82153/beta-startup-error
This commit is contained in:
Dan Stillman 2020-03-27 02:00:28 -04:00
parent 17d6181507
commit 97767278fb

View file

@ -629,7 +629,7 @@ Zotero.Schema = new function(){
}
var items = await Zotero.Items.getAsync(itemIDs);
await Zotero.Items.loadDataTypes(items, ['itemData', 'creator']);
await Zotero.Items.loadDataTypes(items);
for (let item of items) {
let changed = item.migrateExtraFields();
if (!changed) continue;