www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 7cc48426b3dfff277a78ab6ed790f2e86429a1e2
parent 7eb2f5aad36354ba43117d4da65ff79612da6f0d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 15 Nov 2009 07:12:54 +0000

Don't immediately re-upload synced relations


Diffstat:
Mchrome/content/zotero/xpcom/data/relation.js | 15+++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/relation.js b/chrome/content/zotero/xpcom/data/relation.js @@ -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; }