Use dateModified instead of clientDateModified when finding old items
This commit is contained in:
parent
8d09efb9b5
commit
b4dab3ce9c
|
@ -107,7 +107,13 @@ Zotero.DataObjects = function (object, objectPlural, id, table) {
|
||||||
+ "Zotero." + this._ZDO_Objects + ".getOlder()")
|
+ "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));
|
return Zotero.DB.columnQuery(sql, Zotero.Date.dateToSQL(date, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user