Skip to content

Commit

Permalink
Merge pull request #181 from localgovdrupal/1.x
Browse files Browse the repository at this point in the history
Release 1.0.4
  • Loading branch information
stephen-cox authored Jul 23, 2024
2 parents c7449ce + 9058333 commit 8bc6683
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/schema/localgov_publications.schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
filter_settings.localgov_publications_heading_ids:
type: filter
label: 'Automatically apply identifiers (anchors) to headings in content'
mapping:
keep_existing_ids:
type: boolean
label: 'Keep existing IDs'
2 changes: 1 addition & 1 deletion localgov_publications.tokens.inc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function localgov_publications_tokens_alter(array &$replacements, array $context
}

$node = $context['data']['node'];
$bid = $node->book ? $node->book['bid'] : 0;
$bid = $node->book['bid'] ?? 0;

if (empty($bid)) {
return;
Expand Down

0 comments on commit 8bc6683

Please sign in to comment.