commit 57f6aef69634e89a44a3cdb93a943d96d32d2f7b Author: Joel Pittet Date: Sun Mar 30 17:41:12 2014 -0700 stop caching from breaking things diff --git a/core/includes/theme.inc b/core/includes/theme.inc index b762260..d5f3f8c 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2444,11 +2444,11 @@ function template_preprocess_field(&$variables, $hook) { // the element of a field item being rendered as a link). Other field // formatters leave them within $element['#items'][$delta]['_attributes'] to // be rendered on the item wrappers provided by field.html.twig. - $variables['items'] = array(); + $variables['field_values'] = array(); $delta = 0; while (!empty($element[$delta])) { - $variables['items'][$delta]['value'] = $element[$delta]; - $variables['items'][$delta]['attributes'] = !empty($element['#items'][$delta]->_attributes) ? new Attribute($element['#items'][$delta]->_attributes) : clone($default_attributes); + $variables['field_values'][$delta]['value'] = $element[$delta]; + $variables['field_values'][$delta]['attributes'] = !empty($element['#items'][$delta]->_attributes) ? new Attribute($element['#items'][$delta]->_attributes) : clone($default_attributes); $delta++; } } diff --git a/core/modules/system/templates/field.html.twig b/core/modules/system/templates/field.html.twig index 39792d8..d036044 100644 --- a/core/modules/system/templates/field.html.twig +++ b/core/modules/system/templates/field.html.twig @@ -35,7 +35,7 @@
{{ label }}: 
{% endif %}
- {% for item in items %} + {% for item in field_values %}
{{ item.value }}
{% endfor %}
diff --git a/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig b/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig index 413ffda..e7efc6b 100644 --- a/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig +++ b/core/themes/bartik/templates/field--taxonomy-term-reference.html.twig @@ -20,7 +20,7 @@
{{ label }}: