Open swirtSJW opened 8 months ago
The easiest place to resolve this, is probably here MenuReductionService::applyVamcMenuRulesForDetailPage()
Inside the big loop if a parent option == the existing parent from the default revision, then do not lock it.
Describe the defect
This defect only shows up in one edge case that is very unlikely to occur in the wild. Here are the requirements to meet the edge case
VAMC editor
Editing an existing page that is already published and exists directly under "Work with us" (an intentionally un-selectable parent for non-admins) Example: /lebanon-health-care/work-with-us/jobs-and-careers
Change the parent from "work with us" to "Select a value" (essentially making it empty)
Attempt to save the node either as draft of published
The save will get rejected because parent can not be empty.
Try to set the parent back to "Work with us" and you will see that it is not a choose-able option (which most of the time is what we want).
The editor is left with two options.
AC / Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Labels
(You can delete this section once it's complete)
Team
Please check the team(s) that will do this work.
CMS Team
Public Websites
Facilities
User support
Accelerated Publishing