Skip to content
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

Add option to disallow self-referencing #266

Open
j-stechmann opened this issue May 24, 2023 · 0 comments
Open

Add option to disallow self-referencing #266

j-stechmann opened this issue May 24, 2023 · 0 comments

Comments

@j-stechmann
Copy link

Hi,

I've had an issue with a client that accidentally self-referenced an entry.
We have the menu on this site set up so that if an entry had a specific entry type, we would get the url of the linkfield within that entry, eliminating a redirection (and enabling some other cool things).

Since the client chose the same entry the field was being saved in, the website became non-functioning.

Maybe I should check for a recursion, but I thought it might be a good idea to prevent the user from making that mistake in the first place 🙂

Would it be possible to add a field setting which disallows self-referencing?

I'm running CraftCMS 4.2.8 and linkfield 2.1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant