From 2d22def9cfbda32b53d1e11ac2d205d75a5f23e1 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 29 Oct 2012 22:44:16 +0000 Subject: [PATCH] Issue #1808712 by kevin.dutra, krishworks: Fixed Redundant token processing. --- .../lib/Drupal/views/Plugin/views/field/FieldPluginBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php index 5d10b4fbbb19..8d6fe061d043 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php @@ -1482,9 +1482,6 @@ function get_render_tokens($item) { else { $tokens["[$field]"] = ''; } - if (!empty($item)) { - $this->add_self_tokens($tokens, $item); - } // We only use fields up to (and including) this one. if ($field == $this->options['id']) { @@ -1495,6 +1492,9 @@ function get_render_tokens($item) { // Store the tokens for the row so we can reference them later if necessary. $this->view->style_plugin->render_tokens[$this->view->row_index] = $tokens; $this->last_tokens = $tokens; + if (!empty($item)) { + $this->add_self_tokens($tokens, $item); + } return $tokens; } -- GitLab