Fix setting of libraryID in createDataObject() support function

When another property was also set, setting libraryID would fail.
This commit is contained in:
Dan Stillman 2017-02-21 00:03:39 -05:00
parent e465cf058e
commit d32f23471e

View file

@ -371,6 +371,9 @@ function createUnsavedDataObject(objectType, params = {}) {
}
var obj = new Zotero[Zotero.Utilities.capitalize(objectType)](itemType);
if (params.libraryID) {
obj.libraryID = params.libraryID;
}
switch (objectType) {
case 'item':