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

@ -26,9 +26,12 @@
<select id="Parent" class="form-control" value="@_parentid" @onchange="(e => ParentChanged(e))">
<option value="-1">&lt;@Localizer["Site Root"]&gt;</option>
@foreach (Page page in _pageList)
{
if (page.PageId != _pageId)
{
<option value="@(page.PageId)">@(new string('-', page.Level * 2))@(page.Name)</option>
}
}
</select>
</td>
</tr>