Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Exclude deleted items from broken links warning

  • Loading branch information...
commit 837d2b070183be461e25f9b98c6589b28a5cd9f3 1 parent 04c1c6e
@libardo libardo authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Mvc/MvcTemplates/N2/Content/Delete.aspx.cs
View
5 src/Mvc/MvcTemplates/N2/Content/Delete.aspx.cs
@@ -21,7 +21,10 @@ protected override void OnInit(EventArgs e)
itemsToDelete.CurrentItem = Selection.SelectedItem;
itemsToDelete.DataBind();
- var q = Engine.Resolve<IItemFinder>().Where.Detail(LinkTracker.Tracker.LinkDetailName).Like(Selection.SelectedItem.Url);
+ var q = Engine.Resolve<IItemFinder>()
+ .Where.Detail(LinkTracker.Tracker.LinkDetailName)
+ .Like(Selection.SelectedItem.Url)
+ .And.State.NotEq(ContentState.Deleted);
if (Selection.SelectedItem.ID != 0)
q = q.Or.Detail().Eq(Selection.SelectedItem);
Please sign in to comment.
Something went wrong with that request. Please try again.