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()"); throw ("Missing object in Zotero.Relation.save()");
} }
var sql = "INSERT INTO relations (libraryID, subject, predicate, object) VALUES (?, ?, ?, ?)"; var sql = "INSERT INTO relations "
var insertID = Zotero.DB.query(sql, [this.libraryID, this.subject, this.predicate, this.object]); + "(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; return insertID;
} }