Remove .noteSchemaVersion

This leaves item.note in place, rather than reverting all the
`getNote()` → `.note` changes. We can consider which we want to keep.
This commit is contained in:
Dan Stillman 2020-09-12 16:09:49 -04:00
parent 602e4c1e1f
commit 199619f40e
10 changed files with 60 additions and 199 deletions

View file

@ -468,10 +468,7 @@ function createUnsavedDataObject(objectType, params = {}) {
obj.setTags(params.tags);
}
if (params.note !== undefined) {
obj.setNote(params.note, params.noteSchemaVersion);
}
else if (itemType == 'note') {
obj.setNote(`<p>${Zotero.Utilities.randomString()}</p>`, params.noteSchemaVersion);
obj.setNote(params.note);
}
break;