From 94ed64640b7612fb89ed71172a51e211a1ab267e Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 3 Feb 2023 15:58:29 +0100 Subject: [PATCH] fixing popsu.theme bug 3 --- web/themes/custom/popsu/popsu.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/custom/popsu/popsu.theme b/web/themes/custom/popsu/popsu.theme index 9db9f81c..61a08feb 100644 --- a/web/themes/custom/popsu/popsu.theme +++ b/web/themes/custom/popsu/popsu.theme @@ -68,7 +68,7 @@ function popsu_preprocess_field(&$variables){ if($element["#field_name"] == "field_programme"){ foreach ($element["#items"]->getIterator() as $id => $item) { $nid = $item->getValue()['target_id']; - $variables['items'][$nid]['attributes']['class'] = new Attribute(); + $variables['items'][$nid]['attributes'] = new Attribute(); $variables['items'][$nid]['attributes']->addClass("programme-".$nid); } }