www

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

commit b4dab3ce9ce295f8322142ea12bff0d37a4d0f8b
parent 8d09efb9b5564542e7081adfb4768888227f8529
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 27 Nov 2009 20:43:27 +0000

Use dateModified instead of clientDateModified when finding old items


Diffstat:
Mchrome/content/zotero/xpcom/data/dataObjects.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/data/dataObjects.js b/chrome/content/zotero/xpcom/data/dataObjects.js @@ -107,7 +107,13 @@ Zotero.DataObjects = function (object, objectPlural, id, table) { + "Zotero." + this._ZDO_Objects + ".getOlder()") } - var sql = "SELECT ROWID FROM " + this._ZDO_table + " WHERE clientDateModified<?"; + var sql = "SELECT ROWID FROM " + this._ZDO_table + " WHERE "; + if (this._ZDO_object == 'relation') { + sql += "clientDateModified<?"; + } + else { + sql += "dateModified<?"; + } return Zotero.DB.columnQuery(sql, Zotero.Date.dateToSQL(date, true)); }