Skip to content

Conversation

@finnlewis
Copy link
Member

@finnlewis finnlewis commented Nov 19, 2025

This should fix the fatal error we are seeing on localgovdrupal/localgov_subsites_extras#39

We should follow up as discussed yesterday on harmonising the logic for section titles, whether they are required and how the we. make use of them for previous next navigation links.

CC @markconroy @ekes

Steps to test:

  1. Default install of LocalGov Drupal with LocalGov Guides on 2.x branch
  2. Create Guide overview page with no section title
  3. Create guide page with parent of the overview.
  4. Save
  5. See error

Drupal\Core\Render\Component\Exception\InvalidComponentException: [prev_title] NULL value found, but a string or an object is required.

  1. Checkout this branch
  2. No error :)

@finnlewis finnlewis requested a review from ekes November 19, 2025 11:28
Copy link
Member

@ekes ekes left a comment

Choose a reason for hiding this comment

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

It's my own hasty test, but fixes the subsites extras one too. So let's go.

@finnlewis finnlewis merged commit ac5065b into 2.x Nov 19, 2025
28 of 29 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