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

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

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

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.

1 participant