Skip to content
Snippets Groups Projects
Commit 0933d4b6 authored by Shelane French's avatar Shelane French
Browse files

removes translate of variables

parent a7a021be
No related branches found
No related tags found
No related merge requests found
......@@ -229,15 +229,15 @@ class ViewsConditionalField extends FieldPluginBase implements ContainerFactoryP
// If we find a replacement variable, replace it.
if (strpos($equalto, "{{ $key }}") !== FALSE) {
$field = $this->cleanVar($fields[$key]);
$equalto = $this->t(str_replace("{{ $key }}", $field, $equalto));
$equalto = str_replace("{{ $key }}", $field, $equalto);
}
if (strpos($then, "{{ $key }}") !== FALSE) {
$field = $this->cleanVar($fields[$key]);
$then = $this->t(str_replace("{{ $key }}", $field, $then));
$then = str_replace("{{ $key }}", $field, $then);
}
if (strpos($or, "{{ $key }}") !== FALSE) {
$field = $this->cleanVar($fields[$key]);
$or = $this->t(str_replace("{{ $key }}", $field, $or));
$or = str_replace("{{ $key }}", $field, $or);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment