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:
parent
602e4c1e1f
commit
199619f40e
10 changed files with 60 additions and 199 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue