Fix accessDate for attachments showing up as "false" (caused by r1162)
This commit is contained in:
parent
a076095400
commit
7c8b185b27
|
@ -511,7 +511,8 @@ Zotero.Item.prototype.setField = function(field, value, loadIn){
|
||||||
|
|
||||||
if (fieldID == Zotero.ItemFields.getID('accessDate')) {
|
if (fieldID == Zotero.ItemFields.getID('accessDate')) {
|
||||||
if (!Zotero.Date.isSQLDate(value) &&
|
if (!Zotero.Date.isSQLDate(value) &&
|
||||||
!Zotero.Date.isSQLDateTime(value)) {
|
!Zotero.Date.isSQLDateTime(value) &&
|
||||||
|
value != 'CURRENT_TIMESTAMP') {
|
||||||
Zotero.debug("Discarding invalid accessDate '" + value
|
Zotero.debug("Discarding invalid accessDate '" + value
|
||||||
+ "' in Item.setField()");
|
+ "' in Item.setField()");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user