Don't immediately re-upload synced relations

This commit is contained in:
Dan Stillman 2009-11-15 07:12:54 +00:00
parent 7eb2f5aad3
commit 7cc48426b3

View File

@ -133,8 +133,19 @@ Zotero.Relation.prototype.save = function () {
throw ("Missing object in Zotero.Relation.save()");
}
var sql = "INSERT INTO relations (libraryID, subject, predicate, object) VALUES (?, ?, ?, ?)";
var insertID = Zotero.DB.query(sql, [this.libraryID, this.subject, this.predicate, this.object]);
var sql = "INSERT INTO relations "
+ "(libraryID, subject, predicate, object, clientDateModified) "
+ "VALUES (?, ?, ?, ?, ?)";
var insertID = Zotero.DB.query(
sql,
[
this.libraryID,
this.subject,
this.predicate,
this.object,
Zotero.DB.transactionDateTime
]
);
return insertID;
}