Skip to content
Snippets Groups Projects
Commit d587e771 authored by drupal_was_my_past's avatar drupal_was_my_past Committed by Tim Plunkett
Browse files

Issue #1661372 by rocket_nova: Fixed Contextual links render incorrectly when...

Issue #1661372 by rocket_nova: Fixed Contextual links render incorrectly when the field returns empty.
parent 7c0ebd8d
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
...@@ -68,7 +68,7 @@ function render($values) { ...@@ -68,7 +68,7 @@ function render($values) {
if (!empty($this->view->field[$field]->options['alter']['path'])) { if (!empty($this->view->field[$field]->options['alter']['path'])) {
$path = $this->view->field[$field]->options['alter']['path']; $path = $this->view->field[$field]->options['alter']['path'];
} }
if (!empty($title)) { if (!empty($title) && !empty($path)) {
// Make sure that tokens are replaced for this paths as well. // Make sure that tokens are replaced for this paths as well.
$tokens = $this->get_render_tokens(array()); $tokens = $this->get_render_tokens(array());
$path = strip_tags(decode_entities(strtr($path, $tokens))); $path = strip_tags(decode_entities(strtr($path, $tokens)));
......
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