www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d32f23471efd4ad0556c1f85c0328d5661ca0dc1
parent e465cf058eb99b646c29d7ae0c9ae9f70accf4fa
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 21 Feb 2017 00:03:39 -0500

Fix setting of libraryID in createDataObject() support function

When another property was also set, setting libraryID would fail.

Diffstat:
Mtest/content/support.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/test/content/support.js b/test/content/support.js @@ -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':