Disallow page from being its own parent
|Reported by:||mtekk||Owned by:||anonymous|
I noticed this in the 2.7-hemorrhage branch that the dashboard page editor allows you to set the current page as its own parent. If this happens, many things break as PHP enters an infinite query loop. Two things should be done, not show it in the edit page. Additionally, when reading the parent_id, it should be checked to make sure it is not the same as the current page's ID this prevents the infinite loop from ever occurring from this condition. This was observed in r8822.
Change History (6)
- Summary changed from Disallow page being its own parent to Disallow page from being its own parent