diff --git a/application/controllers/api/frontend/v1/Cms.php b/application/controllers/api/frontend/v1/Cms.php
index e41196f45..f0d009534 100644
--- a/application/controllers/api/frontend/v1/Cms.php
+++ b/application/controllers/api/frontend/v1/Cms.php
@@ -181,7 +181,6 @@ class Cms extends FHCAPI_Controller
$page_size = $page_size ?? 10;
$news = $this->cmslib->getNews($infoscreen, $studiengang_kz, $semester, $mischen, $titel, $edit, $sichtbar, $page, $page_size);
-
$news = $this->getDataOrTerminateWithError($news);
$this->addMeta('test', $this->p->t('global', 'studiengangsleitung'));
diff --git a/application/libraries/CmsLib.php b/application/libraries/CmsLib.php
index b65e2a71c..e7f2c2de2 100644
--- a/application/libraries/CmsLib.php
+++ b/application/libraries/CmsLib.php
@@ -236,7 +236,7 @@ class CmsLib
return $news;
$news = getData($news);
- //var_dump($news->maxPageCount);
+
foreach ($news as $newsobj) {
if ($studiengang_kz && $edit && !$newsobj->studiengang_kz)
continue;
@@ -247,7 +247,7 @@ class CmsLib
$xml .= "
{{vertretungFormatedName(vertretung)}}
+ + +{{vertretungFormatedName(vertretung,false)}}
+ + +{{vertretungFormatedName(vertretung,false)}}
+ + `, computed:{ collection_array: function(){ @@ -48,6 +66,10 @@ computed:{ }, }, methods:{ + vertretungFormatedName: function(vertretung,bezeichnung=true){ + if(!vertretung) return null; + return `${vertretung.vorname ?? ''} ${vertretung.nachname ?? ''} ${vertretung.bezeichnung && bezeichnung ? '('.concat(vertretung.bezeichnung.replace("(","").replace(")","")).concat(")") : ''}` + }, studiengangs_person_data: function (collection) { // early return if the reactive data is not yet loaded or not present if (!collection || !Array.isArray(collection) || collection.length === 0) @@ -110,6 +132,7 @@ mounted(){ .then(res => res.data) .then(studiengangInformationen => { Object.assign(this, studiengangInformationen); + console.log(studiengangInformationen,"das sind die Informationen") }); }, diff --git a/public/js/components/Cis/Cms/StudiengangInformation/StudiengangPerson.js b/public/js/components/Cis/Cms/StudiengangInformation/StudiengangPerson.js index 848b31256..294f41cdf 100644 --- a/public/js/components/Cis/Cms/StudiengangInformation/StudiengangPerson.js +++ b/public/js/components/Cis/Cms/StudiengangInformation/StudiengangPerson.js @@ -25,7 +25,7 @@ export default {