Prevent Item.save() from running when hitting Escape in an empty field (I don't know when this started, but Beta 2 didn't do it...)
This commit is contained in:
parent
1cf88c30e7
commit
bd7d95a576
|
@ -424,7 +424,7 @@ Zotero.Item.prototype.setField = function(field, value, loadIn){
|
|||
'setField');
|
||||
}
|
||||
|
||||
if (this._data[field] && this._data[field]==value){
|
||||
if (this._data[field] != undefined && this._data[field]==value){
|
||||
return false;
|
||||
}
|
||||
this._data[field] = value;
|
||||
|
|
Loading…
Reference in New Issue
Block a user