Browse Source

fixing popsu.theme bug

bach 1 year ago
parent
commit
88a19cf02e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      web/profiles/d8-starterkit-profile
  2. 1 1
      web/themes/custom/popsu/popsu.theme

+ 1 - 1
web/profiles/d8-starterkit-profile

@@ -1 +1 @@
-Subproject commit 5069345d9dffca8ff935d7a01d2bc97a1272f063
+Subproject commit 179aa994156fa9c986cf9eb9262872abb9c651a2

+ 1 - 1
web/themes/custom/popsu/popsu.theme

@@ -69,7 +69,7 @@ function popsu_preprocess_field(&$variables){
       foreach ($element["#items"]->getIterator() as $id => $item) {
         $nid = $item->getValue()['target_id'];
         $variables['items'][$id]['attributes']['class'] = new Attribute();
-        $variables['items'][$id]['attributes']->addClass("programme-".$nid);
+        $variables['items'][$id]['attributes']['class']->addClass("programme-".$nid);
       }
     }
   }