Fix accessDate for attachments showing up as "false" (caused by r1162)

This commit is contained in:
Dan Stillman 2007-02-17 23:48:53 +00:00
parent a076095400
commit 7c8b185b27

View File

@ -511,7 +511,8 @@ Zotero.Item.prototype.setField = function(field, value, loadIn){
if (fieldID == Zotero.ItemFields.getID('accessDate')) {
if (!Zotero.Date.isSQLDate(value) &&
!Zotero.Date.isSQLDateTime(value)) {
!Zotero.Date.isSQLDateTime(value) &&
value != 'CURRENT_TIMESTAMP') {
Zotero.debug("Discarding invalid accessDate '" + value
+ "' in Item.setField()");
return false;