Commit 3044069f authored by merlinofchaos's avatar merlinofchaos

#561892 by dereine: Unchecking "rewrite this field" but leaving a value caused...

#561892 by dereine: Unchecking "rewrite this field" but leaving a value caused field to be rewritten anyway.
parent fdaa5e84
......@@ -42,10 +42,10 @@ Views 2.x-dev
o #554016 by webchick: views_embed_view() should check view access.
o #523222 by gpk: Contact link should not be allowed for the anonymous user.
o #563540 by dereine: Fix description of cache plugin settings.
o #563564 by dereine: Unformatted style does not use options, so the options icon should not appear.
o #564536 by dereine: Node links should allow language setting from node data.
o #551752 by dereine: Clean up row counter code.
o #451208 by dereine and superbaloo: Fix grid style to not leave missing tds in bottom row.
o #561892 by dereine: Unchecking "rewrite this field" but leaving a value caused field to be rewritten anyway.
Other changes:
o Implement a post_render hook (for themes too) and cache method.
......
......@@ -493,7 +493,7 @@ class views_handler_field extends views_handler {
return '';
}
if ($alter['alter_text'] !== '' && $alter['text'] !== '') {
if (!empty($alter['alter_text']) && $alter['text'] !== '') {
$tokens = $this->get_render_tokens($alter);
$value = $this->render_altered($alter, $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