Bug #250835 --> Deleting a feed doesn't properly remove the items from the items data source

This commit is contained in:
scott%scott-macgregor.org 2004-07-11 19:57:19 +00:00
Родитель 416050702c
Коммит b91dc3a6de
1 изменённых файлов: 3 добавлений и 10 удалений

Просмотреть файл

@ -240,16 +240,9 @@ function doRemove() {
// Remove all assertions about items in the feed from the items database.
ds = getItemsDS();
var items = ds.GetSources(FZ_FEED, feed, true);
while (items.hasMoreElements()) {
var item = items.getNext();
item = item.QueryInterface(Components.interfaces.nsIRDFResource);
ds.Unassert(item, FZ_FEED, feed, true);
if (ds.hasArcOut(item, FZ_FEED))
debug(item.Value + " is from more than one feed; only the reference to this feed removed");
else
removeAssertions(ds, item);
}
feed.invalidateItems();
feed.removeInvalidItems();
ds.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Flush(); // flush any changes
}