Skip to content

[6.x] Use the nav item's current tree depth in the page editor - #15425

Open
duncanmcclean wants to merge 1 commit into
6.xfrom
nav-item-depth
Open

[6.x] Use the nav item's current tree depth in the page editor#15425
duncanmcclean wants to merge 1 commit into
6.xfrom
nav-item-depth

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where field conditions on depth in the navigation page editor wouldn't reflect an item's current position in the tree until the tree was saved and the page reloaded.

This was happening because the page editor's depth came from the server, which only knows where the item was last saved. Newly created items didn't get a depth at all.

This PR fixes it by having the page tree report each item's current depth and passing that into the page editor, so conditions react to where the item sits right now.

Fixes #11378

the editor's `depth` came from the server, which only knows where the
item was last saved, so conditions on `depth` were stale after moving
an item and missing entirely for new ones.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0126fPHSABZ1oDr8eQDQecGc
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.

The depth value in nav blueprint isn't being live updated

1 participant