Commit 2d22def9 authored by catch's avatar catch

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

parent 1336f087
......@@ -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;
}
......
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