mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
Added a workaround to convert pgsql arrays into php arrays
Affected controllers: Dokument and Dokumentstudiengang
This commit is contained in:
@@ -24,8 +24,6 @@ class Dokument extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model DokumentModel
|
||||
$this->load->model('crm/dokument_model', 'DokumentModel');
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,6 +37,9 @@ class Dokument extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentModel->load($dokument_kurzbz);
|
||||
|
||||
// Workaround
|
||||
$result = $this->escapeArrays($result, array('bezeichnung_mehrsprachig', 'dokumentbeschreibung_mehrsprachig'));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -38,6 +38,9 @@ class Dokumentstudiengang extends APIv1_Controller
|
||||
{
|
||||
$result = $this->DokumentstudiengangModel->load(array($studiengang_kz, $dokument_kurzbz));
|
||||
|
||||
// Workaround
|
||||
$result = $this->escapeArrays($result, array('beschreibung_mehrsprachig'));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user