Make sure item returned from getLinkedItem() has all data loaded
Follow-up to 8fc316f727
This commit is contained in:
parent
4efc0af119
commit
c5f01bc2f3
1 changed files with 6 additions and 2 deletions
|
@ -4778,8 +4778,12 @@ Zotero.Item.prototype.migrateExtraFields = function () {
|
|||
*
|
||||
* @return {Promise<Zotero.Item>}
|
||||
*/
|
||||
Zotero.Item.prototype.getLinkedItem = function (libraryID, bidirectional) {
|
||||
return this._getLinkedObject(libraryID, bidirectional);
|
||||
Zotero.Item.prototype.getLinkedItem = async function (libraryID, bidirectional) {
|
||||
var item = await this._getLinkedObject(libraryID, bidirectional);
|
||||
if (item) {
|
||||
await item.loadAllData();
|
||||
}
|
||||
return item;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue