Skip to content
Snippets Groups Projects
Commit 2d22def9 authored by catch's avatar catch
Browse files

Issue #1808712 by kevin.dutra, krishworks: Fixed Redundant token processing.

parent 1336f087
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
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment