adds quick fix for the query builder error that comes up when fetching content

This commit is contained in:
SimonGschnell
2024-09-11 11:26:04 +02:00
parent 7b110aaf50
commit 8860d9a598
@@ -130,7 +130,9 @@ class Cms extends FHCAPI_Controller
// collect the content of the news
foreach($news as $news_element){
$this->addMeta("content_id",$news_element->content_id);
//todo: quick fix, for query builder error when fetching content
$this->NewsModel->resetQuery();
$content = $this->cmslib->getContent($news_element->content_id);
$content = $this->getDataOrTerminateWithError($content);