浏览代码

fixing popsu.theme bug

bach 2 年之前
父节点
当前提交
88a19cf02e
共有 2 个文件被更改,包括 2 次插入2 次删除
  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);
       }
     }
   }