From 8860d9a598c2a83f09b35bdc68a26bd0fe103b23 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Wed, 11 Sep 2024 11:26:04 +0200 Subject: [PATCH] adds quick fix for the query builder error that comes up when fetching content --- application/controllers/api/frontend/v1/Cms.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/api/frontend/v1/Cms.php b/application/controllers/api/frontend/v1/Cms.php index afebe3995..1c2920dc6 100644 --- a/application/controllers/api/frontend/v1/Cms.php +++ b/application/controllers/api/frontend/v1/Cms.php @@ -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);