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: new and add child button for empty tree doctype #26328

Merged
merged 3 commits into from
May 13, 2024

Conversation

rutwikhdev
Copy link
Contributor

@rutwikhdev rutwikhdev commented May 6, 2024

Fixes:
#26158
#26414

Steps to reproduce:

  • Enable is_root on any doctype that doesn't have any records
  • Try to create root node either with "Add Child" or "New"

no-docs

- The second check in treeview.js is useless
- If the node being created is root-node(i.e. doctype(name) is parent
  then don't set parent)
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label May 6, 2024
@rutwikhdev rutwikhdev marked this pull request as ready for review May 7, 2024 05:49
@rutwikhdev rutwikhdev requested a review from a team as a code owner May 7, 2024 05:49
@rutwikhdev rutwikhdev requested review from akhilnarang and removed request for a team May 7, 2024 05:49
@rutwikhdev rutwikhdev added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 and removed add-test-cases Add test case to validate fix or enhancement labels May 13, 2024
@rutwikhdev rutwikhdev merged commit 35f0d92 into frappe:develop May 13, 2024
24 checks passed
@rutwikhdev rutwikhdev added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 and removed backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 labels May 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Tree View): Show title for Root Node In Tree view "New" button doesn't work
1 participant