Commit 0dbfc2b7 authored by drupal_was_my_past's avatar drupal_was_my_past Committed by tim.plunkett

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 86ec547c
......@@ -70,7 +70,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)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment