Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2d22def9
Commit
2d22def9
authored
Oct 29, 2012
by
catch
Browse files
Issue
#1808712
by kevin.dutra, krishworks: Fixed Redundant token processing.
parent
1336f087
Changes
1
Show whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
View file @
2d22def9
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment