Fix upgrade error for custom styles with invalid ids
This commit is contained in:
parent
b31e47c504
commit
bd7ff9c2c6
1 changed files with 10 additions and 4 deletions
|
@ -2343,10 +2343,16 @@ Zotero.Schema = new function(){
|
|||
if (!matches) {
|
||||
continue;
|
||||
}
|
||||
file.append(matches[1]);
|
||||
Zotero.debug("Extracting styles '" + matches[1] + "' from database");
|
||||
Zotero.File.putContents(file, row.csl);
|
||||
Zotero.wait();
|
||||
try {
|
||||
Zotero.debug("Extracting styles '" + matches[1] + "' from database");
|
||||
file.append(matches[1]);
|
||||
Zotero.File.putContents(file, row.csl);
|
||||
Zotero.wait();
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.debug(e);
|
||||
Components.utils.reportError("Skipping style '" + matches[1] + "'");
|
||||
}
|
||||
}
|
||||
Zotero.Styles.init();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue