Allow parentItemID
as a createDataObject()
parameter in tests
Not just `parentID`
This commit is contained in:
parent
948a4dda64
commit
ad216bcf97
1 changed files with 4 additions and 0 deletions
|
@ -411,6 +411,10 @@ function createUnsavedDataObject(objectType, params = {}) {
|
|||
switch (objectType) {
|
||||
case 'item':
|
||||
case 'feedItem':
|
||||
if (params.parentItemID) {
|
||||
params.parentID = params.parentItemID;
|
||||
delete params.parentItemID;
|
||||
}
|
||||
if (params.title !== undefined || params.setTitle) {
|
||||
obj.setField('title', params.title !== undefined ? params.title : Zotero.Utilities.randomString());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue