commit efdffe68fd1bb5a1557caaefe46be17c563a7a34 Author: Dan Smith Date: Fri Mar 28 23:01:08 2014 +0100 713462-field-default-markup-removing-the-divitis-69 diff --git a/core/includes/theme.inc b/core/includes/theme.inc index a1c8a92..178702b 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2415,12 +2415,6 @@ function template_preprocess_field(&$variables, $hook) { $delta++; } - // We have to know if the field has multiple values to create a simple value - // or a list. - if (count($variables['items']) > 1 ) { - $variables['multiple'] = TRUE; - } - // Add default CSS classes. Since there can be many fields rendered on a page, // save some overhead by calling strtr() directly instead of // drupal_html_class(). diff --git a/core/modules/system/templates/field.html.twig b/core/modules/system/templates/field.html.twig index 296c1af..a2a1485 100644 --- a/core/modules/system/templates/field.html.twig +++ b/core/modules/system/templates/field.html.twig @@ -29,12 +29,12 @@ * @ingroup themeable */ #} -{% if multiple %} +{% if items.length > 1 %}
{% if not label_hidden %}
{{ label }}
{% endif %} -