Permalink
Browse files

Exclude deleted items from broken links warning

  • Loading branch information...
1 parent 04c1c6e commit 837d2b070183be461e25f9b98c6589b28a5cd9f3 @libardo libardo committed May 6, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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);

0 comments on commit 837d2b0

Please sign in to comment.