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

Fix server error in the dashboard when a nested module has a deleted parent #2633

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

Tofandel
Copy link
Contributor

@Tofandel Tofandel commented Jul 11, 2024

If you have a nested module that you want to show in the dashboard, if you trash a parent without soft deleting the subject, then the dashboard throws an error 500 when it tries to display any activity that happened on one of the children of the deleted parent

Missing required parameter for [Route: twill.articleCategories.articles.edit] [URI: admin/articleCategories/{articleCategory}/articles/{article}/edit] [Missing parameter: article]

The error is because the empty parent is ignored and twill tries to use the moduleRoute as if it was a non nested module route, instead of ignoring the record

This PR fixes this issue

@ifox ifox merged commit 6970503 into area17:3.x Oct 14, 2024
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants