mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Don't update item when tabbing through empty Date field
This commit is contained in:
parent
147f325e40
commit
9796e60617
1 changed files with 3 additions and 2 deletions
|
|
@ -822,8 +822,9 @@ Zotero.Item.prototype.setField = function(field, value, loadIn) {
|
|||
if (!loadIn) {
|
||||
// Save date field as multipart date
|
||||
// TEMP - filingDate
|
||||
if ((Zotero.ItemFields.isFieldOfBase(fieldID, 'date') || field == 'filingDate') &&
|
||||
!Zotero.Date.isMultipart(value)) {
|
||||
if (value !== false
|
||||
&& (Zotero.ItemFields.isFieldOfBase(fieldID, 'date') || field == 'filingDate')
|
||||
&& !Zotero.Date.isMultipart(value)) {
|
||||
value = Zotero.Date.strToMultipart(value);
|
||||
}
|
||||
// Validate access date
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue