Debugging and temporary fix for relations purging issue
This commit is contained in:
parent
2ca0d159b5
commit
6a0c623698
|
@ -229,6 +229,7 @@ Zotero.Relations = new function () {
|
|||
var uris = Zotero.DB.columnQuery(sql, [this.deletedItemPredicate, this.deletedItemPredicate]);
|
||||
if (uris) {
|
||||
var prefix = Zotero.URI.defaultPrefix;
|
||||
try {
|
||||
Zotero.DB.beginTransaction();
|
||||
for each(var uri in uris) {
|
||||
// Skip URIs that don't begin with the default prefix,
|
||||
|
@ -245,6 +246,11 @@ Zotero.Relations = new function () {
|
|||
}
|
||||
Zotero.DB.commitTransaction();
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.debug(e);
|
||||
Zotero.debug(Zotero.DB.query("SELECT * FROM relations"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user