From a555067c43a37f262abd88b387f4286a9a077dc9 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Fri, 2 Aug 2024 14:24:50 +0200 Subject: [PATCH] Prepare for Translated fields in DB_Model --- application/controllers/api/frontend/v1/stv/Lists.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/api/frontend/v1/stv/Lists.php b/application/controllers/api/frontend/v1/stv/Lists.php index 1a75cdb50..1c0c25db7 100644 --- a/application/controllers/api/frontend/v1/stv/Lists.php +++ b/application/controllers/api/frontend/v1/stv/Lists.php @@ -88,6 +88,7 @@ class Lists extends FHCAPI_Controller $this->GeschlechtModel->addOrder('geschlecht'); $this->GeschlechtModel->addSelect('*'); + #$this->GeschlechtModel->addTranslatedSelect("bezeichnung_mehrsprachig", "bezeichnung"); $this->GeschlechtModel->addSelect("bezeichnung_mehrsprachig[(SELECT index FROM public.tbl_sprache WHERE sprache=" . $this->GeschlechtModel->escape(DEFAULT_LANGUAGE) . " LIMIT 1)] AS bezeichnung"); $result = $this->GeschlechtModel->load(); @@ -126,6 +127,7 @@ class Lists extends FHCAPI_Controller $this->load->model('crm/Status_model', 'StatusModel'); $this->StatusModel->addSelect('*'); + #$this->StatusModel->addTranslatedSelect('bezeichnung_mehrsprachig', 'bezeichnung'); $this->StatusModel->addSelect( 'bezeichnung_mehrsprachig[( SELECT index