Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-9738: Fix block access hook #753

Merged
merged 3 commits into from
May 15, 2024
Merged

UHF-9738: Fix block access hook #753

merged 3 commits into from
May 15, 2024

Conversation

hyrsky
Copy link
Contributor

@hyrsky hyrsky commented Apr 30, 2024

UHF-9738

What was done

  • Changes to hook_block_access made in UHF-9738: news article content type #735 broke nodes where field_has_hero was FALSE but field_hero was not.
    • Remove support for field_hero without field_has_hero since that was not used by news_article nodes.
    • Simplify title block hiding logic throughout the code base.

How to install

  • Make sure your instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the Helfi Platform config
    • composer require drupal/helfi_platform_config:dev-UHF-9738-block-access-fixes
  • Run make drush-updb drush-cr

How to test

  • Check that this feature works
  • Check that code follows our standards

Continuous documentation

  • This feature has been documented/the documentation has been updated
  • [?] This change doesn't require updates to the documentation

Translations

  • Translations have been added to .po -files and included in this PR

Other PRs

@hyrsky hyrsky force-pushed the UHF-9738-block-access-fixes branch from 8e3836b to a227abe Compare April 30, 2024 07:15
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

2 participants