Return a Zotero.Item from all Zotero.Attachments methods
These previously returned an itemID, but now that new saved items can be edited without a refetch, they should just return the new item. (Possible I missed a few spots where these are called.)
This commit is contained in:
parent
5a2ec43de1
commit
2154673dd3
7 changed files with 43 additions and 54 deletions
|
@ -236,7 +236,7 @@ describe("Zotero.CollectionTreeView", function() {
|
|||
});
|
||||
var file = getTestDataDirectory();
|
||||
file.append('test.png');
|
||||
var attachmentID = yield Zotero.Attachments.importFromFile({
|
||||
yield Zotero.Attachments.importFromFile({
|
||||
file: file,
|
||||
parentItemID: item.id
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue