Skip to content

Conversation

@marcopagliarulo
Copy link
Contributor

@marcopagliarulo marcopagliarulo commented Oct 6, 2025

What does this change?

The PR fix the definition of

  • $form['localgov_services_navigation_children']['#wrapper_attributes']['class']
  • $form['localgov_services_navigation_children']['#attached']['library']

They must be array of string, not string.

How to test

  1. Open Content page
  2. select any Service Landing page or a Service Sub Landing Page
  3. Try to delete the content from the Operations dropdown.
  4. The confirmation Modal should be shown regularly without any error.

How can we measure success?

The error message "Oops, something went wrong. Check your browser's developer console for more details." Is not shown and the confirmation dialog is shown.

Have we considered potential risks?

No risks, it's a simple coding issue.

Related Issue

#328

@marcopagliarulo marcopagliarulo changed the title Delete action for a Service Landing page or Service Sub Landing Page can trigger a PHP error. #328 Delete action for a Service Landing page or Service Sub Landing Page can trigger a PHP error. Oct 6, 2025
@andybroomfield
Copy link
Contributor

@localgovdrupal/maintainers how do I re-run the tests here. This issue fixes a quite major bug (can't delete landing and sub landing pages).

Copy link
Contributor

@andybroomfield andybroomfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @marcopagliarulo.
I've tested this and pages can now be deleted with modal.

I don't think we need a separate test for deleting pages as that's standard Drupal unless we feel that's something we can benefit from, but we need to re-run the tests on this PR before merging.

@andybroomfield andybroomfield force-pushed the fix/2.x-328-delete-action-can-trigger-php-error branch from 01f2220 to 25a1e38 Compare November 14, 2025 09:48
@andybroomfield
Copy link
Contributor

@localgovdrupal/maintainers I added a commit and force pushed a reset. That gave me the button to approve the workflow to run.

@finnlewis finnlewis merged commit 2f722af into localgovdrupal:2.x Nov 18, 2025
17 checks passed
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.

3 participants