Skip to content
Snippets Groups Projects
Commit ba415689 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #23360: Chameleon: fix taxonomy terms disappearing if there are no node links.

parent 82e606f7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -133,8 +133,12 @@ function chameleon_node($node, $main = 0, $page = 0) { ...@@ -133,8 +133,12 @@ function chameleon_node($node, $main = 0, $page = 0) {
$terms = taxonomy_link("taxonomy terms", $node); $terms = taxonomy_link("taxonomy terms", $node);
} }
$links = array_merge($submitted, $terms);
if ($node->links) { if ($node->links) {
$output .= " <div class=\"links\">". theme('links', array_merge($submitted, $terms, $node->links)) ."</div>\n"; $links = array_merge($links, $node->links);
}
if (count($links)) {
$output .= " <div class=\"links\">". theme('links', $links) ."</div>\n";
} }
$output .= "</div>\n"; $output .= "</div>\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment