From 9bffe315b1cdb826f8eea014b5756962a26d3f64 Mon Sep 17 00:00:00 2001 From: Steve Wirt Date: Wed, 24 Jan 2024 17:00:09 -0500 Subject: [PATCH] Revert "VACMS-16959: enabled Work with us parent menu item (#16975)" This reverts commit 0ef8e57380c3a801114f069ee7da32a0251895fb. This commit bypassed the root cause of the issue and hardcoded a bypass. --- .../va_gov_menu_access/src/Service/MenuReductionService.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docroot/modules/custom/va_gov_menu_access/src/Service/MenuReductionService.php b/docroot/modules/custom/va_gov_menu_access/src/Service/MenuReductionService.php index bc2cd80b5bd..4e23518c846 100644 --- a/docroot/modules/custom/va_gov_menu_access/src/Service/MenuReductionService.php +++ b/docroot/modules/custom/va_gov_menu_access/src/Service/MenuReductionService.php @@ -270,11 +270,7 @@ protected function applyVamcMenuRulesForDetailPage(array &$form) { $menu_element_type = $this->getMenuItemType($alias); $menu_element_type = $menu_element_type ?? $this->checkForSeparator($allowed_separators, $menu_item); - if (str_contains($subject_uuid['option'], 'Work with us')) { - // This is a special case where we want to allow the menu item - // to be enabled. - $menu_element_type = self::ENABLED; - } + $this->addAllowedParent($allowed_parents, $enabled_count, $menu_element_type, $subject_uuid); } }