Skip to content

Commit

Permalink
DS downgrade lost the value of narrative taxonomy block field_intro o…
Browse files Browse the repository at this point in the history
…verride.
  • Loading branch information
thinkshout-ci-bot committed Jul 31, 2024
1 parent 468dd8a commit 1bee38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/wri_narrative/wri_narrative.module
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function wri_narrative_preprocess_wri_narrative_tax(&$context) {
else {
// If the field intro is not set, get the narrative tax field value
// from the node.
if (!isset($context["#settings"]["_ds_entity"]->field_intro->value)) {
if (!isset($context["content"]["#block_content"]->field_intro->value)) {
$node = \Drupal::routeMatch()->getParameter('node');
if ($node instanceof NodeInterface && $node->field_narrative_taxonomy) {
$context["content"]["phrase"] = $node->get('field_narrative_taxonomy')->view(['label' => 'hidden']);
Expand Down

0 comments on commit 1bee38e

Please sign in to comment.