Skip to content

Commit

Permalink
CDPT-1170 Remove The Parole Board from the agency switcher (#462)
Browse files Browse the repository at this point in the history
* Put to testing 301 redirects

* Remove the Parole Board from agency switcher
  • Loading branch information
wilson1000-MoJ authored Jan 10, 2024
1 parent 7ab37ec commit c0ad7c6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 23 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"wpackagist-plugin/co-authors-plus": "*",
"wpackagist-plugin/ewww-image-optimizer": "*",
"wpackagist-plugin/wp-document-revisions": "^3.5.0",
"wpackagist-plugin/simple-301-redirects":"2.0.9",
"acf/advanced-custom-fields-pro": "*",
"ministryofjustice/wp-rewrite-media-to-s3": "dev-php8-code-update",
"ministryofjustice/like-button-for-wordpress": "dev-main",
Expand Down
60 changes: 39 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
<ul class="c-intranet-switcher">

<?php

// Temporarily filtering out OSPT/JAC until site is ready to go live
// Remove OSPT hardcoded link to old intranet below when site goes live.
// 10th Jan 2024: Parole Board added to exclude list: https://dsdmoj.atlassian.net/jira/software/c/projects/CDPT/boards/1154?selectedIssue=CDPT-1170
$modified_agency_array = array_filter($activeAgencies, function ($data) {
return !in_array($data["shortcode"], ['jac', 'ospt']);
return !in_array($data["shortcode"], ['jac', 'ospt', 'pb']);
});

foreach ($modified_agency_array as $agency_id => $agency) {
Expand Down

0 comments on commit c0ad7c6

Please sign in to comment.