Fixes #576, Stuck at "Loading library..."
This commit is contained in:
parent
c25836f373
commit
b7caed7e71
|
@ -574,7 +574,7 @@ Zotero.Item.prototype.setField = function(field, value, loadIn){
|
|||
}
|
||||
|
||||
if (!Zotero.ItemFields.isValidForType(fieldID, this.getType())){
|
||||
throw ('"' + field + "' is not a valid field for this type.");
|
||||
throw ('"' + field + "' is not a valid field for type " + this.getType());
|
||||
}
|
||||
|
||||
if (!loadIn){
|
||||
|
|
|
@ -139,6 +139,9 @@ Zotero.ItemTreeView.prototype.refresh = function()
|
|||
// Cache the visible fields so they don't load individually
|
||||
var visibleFields = this.getVisibleFields();
|
||||
for each(var field in visibleFields) {
|
||||
if (field == 'year') {
|
||||
field = 'date';
|
||||
}
|
||||
if (cacheFields.indexOf(field) == -1) {
|
||||
cacheFields = cacheFields.concat(field);
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ Zotero.Report = new function() {
|
|||
continue;
|
||||
}
|
||||
|
||||
// Convert false to empty string
|
||||
// Skip empty fields
|
||||
if (!arr[i]) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user