From d587e77168fe967e6fdf7aa03b224ab48cfed501 Mon Sep 17 00:00:00 2001 From: rocket <rocket@616296.no-reply.drupal.org> Date: Sun, 22 Jul 2012 18:51:24 +0200 Subject: [PATCH] Issue #1661372 by rocket_nova: Fixed Contextual links render incorrectly when the field returns empty. --- handlers/views_handler_field_contextual_links.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/views_handler_field_contextual_links.inc b/handlers/views_handler_field_contextual_links.inc index 65225e2731a3..675c2f44e54b 100644 --- a/handlers/views_handler_field_contextual_links.inc +++ b/handlers/views_handler_field_contextual_links.inc @@ -68,7 +68,7 @@ function render($values) { if (!empty($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. $tokens = $this->get_render_tokens(array()); $path = strip_tags(decode_entities(strtr($path, $tokens))); -- GitLab