Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #86 from noerd/master
Browse files Browse the repository at this point in the history
[BugFix] AdvancedView is throwing an exception when having a single domain configured in umbraco.
  • Loading branch information
kipusoep committed Jul 6, 2015
2 parents 2fad9b7 + fdc3dbb commit c886a9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions UI/UserControls/AdvancedView.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ public void LoadView()
pnlRootNode.Visible = false;
}

ddlRootNode.SelectedValue = UrlTrackerModel.RedirectRootNodeId.ToString();
if (!string.IsNullOrEmpty(UrlTrackerModel.OldRegex) && string.IsNullOrEmpty(UrlTrackerModel.OldUrl))
if (ddlRootNode.Items.Count > 1)
{
ddlRootNode.SelectedValue = UrlTrackerModel.RedirectRootNodeId.ToString();
}

if (!string.IsNullOrEmpty(UrlTrackerModel.OldRegex) && string.IsNullOrEmpty(UrlTrackerModel.OldUrl))
{
tbOldRegex.Text = UrlTrackerModel.OldRegex;
}
Expand Down

0 comments on commit c886a9f

Please sign in to comment.