fix #1217 - ensure parent page cannot be set to current page

This commit is contained in:
Shaun Walker 2021-04-02 08:19:55 -04:00
parent af5f79d343
commit c794f77d65

View File

@ -27,7 +27,10 @@
<option value="-1">&lt;@Localizer["Site Root"]&gt;</option>
@foreach (Page page in _pageList)
{
<option value="@(page.PageId)">@(new string('-', page.Level * 2))@(page.Name)</option>
if (page.PageId != _pageId)
{
<option value="@(page.PageId)">@(new string('-', page.Level * 2))@(page.Name)</option>
}
}
</select>
</td>