mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -30,6 +30,12 @@ namespace Orchard.Indexing.Services {
|
||||
throw new ArgumentNullException("contentItem");
|
||||
}
|
||||
|
||||
if (contentItem.Record == null) {
|
||||
// ignore that case, when Update is called on a content item which has not be "created" yet
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var task in _repository.Table.Where(task => task.ContentItemRecord == contentItem.Record)) {
|
||||
_repository.Delete(task);
|
||||
}
|
||||
|
Reference in New Issue
Block a user