Fix invalid local Date Modified updates in some sync situations

(This isn't new in 3.0.9.)
This commit is contained in:
Dan Stillman 2012-11-17 06:29:40 -05:00
parent f3bfe8be7f
commit 231bc38c43

View file

@ -804,7 +804,7 @@ Zotero.Item.prototype.setField = function(field, value, loadIn) {
}
// If existing value, make sure it's actually changing
if (this._itemData[fieldID] === value) {
if ((this._itemData[fieldID] + "") === (value + "")) {
return false;
}
@ -2813,6 +2813,7 @@ Zotero.Item.prototype.relinkAttachmentFile = function(file, skipItemUpdate) {
this._skipModTimeUpdate = true;
}
this.save();
this._skipModTimeUpdate = false;
return false;
}
@ -2886,7 +2887,7 @@ Zotero.Item.prototype.__defineSetter__('attachmentLinkMode', function (val) {
+ "' in Zotero.Item.attachmentLinkMode setter");
}
if (val === this._attachmentLinkMode) {
if (val === this.attachmentLinkMode) {
return;
}
@ -2938,7 +2939,7 @@ Zotero.Item.prototype.__defineSetter__('attachmentMIMEType', function (val) {
val = '';
}
if (val == this._attachmentMIMEType) {
if (val == this.attachmentMIMEType) {
return;
}
@ -2993,7 +2994,7 @@ Zotero.Item.prototype.__defineSetter__('attachmentCharset', function (val) {
val = null;
}
if (val == this._attachmentCharset) {
if (val == this.attachmentCharset) {
return;
}
@ -3041,7 +3042,7 @@ Zotero.Item.prototype.__defineSetter__('attachmentPath', function (val) {
val = '';
}
if (val == this._attachmentPath) {
if (val == this.attachmentPath) {
return;
}
@ -3099,7 +3100,7 @@ Zotero.Item.prototype.__defineSetter__('attachmentSyncState', function (val) {
+ "' in Zotero.Item.attachmentSyncState setter");
}
if (val == this._attachmentSyncState) {
if (val == this.attachmentSyncState) {
return;
}