fix #1217 - ensure parent page cannot be set to current page
This commit is contained in:
parent
af5f79d343
commit
c794f77d65
|
@ -27,7 +27,10 @@
|
||||||
<option value="-1"><@Localizer["Site Root"]></option>
|
<option value="-1"><@Localizer["Site Root"]></option>
|
||||||
@foreach (Page page in _pageList)
|
@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>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user