New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORE] Bug: Select parent as himself #777

dignajar opened this Issue Sep 11, 2018 · 1 comment


2 participants
Copy link

dignajar commented Sep 11, 2018

Describe your problem

When the user is editing the page, the user can select the same page that is editing as a parent.

Expected behavior

The page does not need to appear on the list as a parent.

Steps to reproduce the problem

Manage > Content > Edit a page and select it as a parent in Option tab.

Bludit version

v3.0.0 rc-3

@dignajar dignajar added the Bug label Sep 11, 2018

SamBrishes added a commit to pytesNET/bludit that referenced this issue Jan 1, 2019

Bugfix: Select parent as himself bludit#777
Bugfix: Select parent as himself bludit#777

This comment has been minimized.

Copy link

SamBrishes commented Jan 1, 2019


I used the HTTP_REFERER global to solve this issue (within a plugin), but this global may don't get send by the browser or just lies. So I guess the best solution would be to just pass the current slug within the AJAX request like on this possible way (It also pass the current slug to the buildParentPages function itself to prevent unnecessary loops).

Happy new Year. 🎉


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment