Mark trashed items as unsynced and update parents (including note list)

Regression from 3a0e0cb088
This commit is contained in:
Dan Stillman 2017-02-15 13:15:30 -05:00
parent 41538ebca6
commit 3830aa1125
5 changed files with 86 additions and 5 deletions

View file

@ -301,6 +301,8 @@ describe("Zotero.Item", function () {
it("should be set to true after save", function* () {
var item = yield createDataObject('item');
item.deleted = true;
// Sanity check for itemsTest#trash()
assert.isTrue(item._changed.deleted);
yield item.saveTx();
assert.ok(item.deleted);
})