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: default tree view #26473

Merged
merged 1 commit into from
May 19, 2024
Merged

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented May 17, 2024

Create a DocType with custom tree JS and set the DocType's default view to "Tree".

When navigating to /app/tree-doctype (["List", "Tree DocType", "Tree"]), some tree view is loaded, but not the same as /app/tree-doctype/view/tree. The custom JS is not loaded:

Bildschirmfoto 2024-05-17 um 20 35 45

When we instead set the route as ["Tree", "Tree DocType"] the loaded view is correct (notice the custom buttons):

Bildschirmfoto 2024-05-17 um 20 35 18

Closes #23316, #23105

@barredterra barredterra added the backport version-15-hotfix Backport the PR to v15 label May 17, 2024
@barredterra barredterra merged commit d693b5b into frappe:develop May 19, 2024
25 checks passed
@barredterra barredterra deleted the default-tree-view branch May 19, 2024 13:43
barredterra added a commit that referenced this pull request May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forced tree view: custom actions are reset on list view selection V15
1 participant