From 8e37e85ecc4f2c5dd87bac8137cc94d3cb1f299b Mon Sep 17 00:00:00 2001 From: paolo Date: Tue, 5 Jul 2016 16:24:46 +0200 Subject: [PATCH] Because the column ort_kurzbz of the table tbl_rt_person is now optional, the join with the table tbl_ort has been replaced with a left join --- application/controllers/api/v1/crm/Reihungstest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/api/v1/crm/Reihungstest.php b/application/controllers/api/v1/crm/Reihungstest.php index 3ab4575ef..514c7ee2a 100644 --- a/application/controllers/api/v1/crm/Reihungstest.php +++ b/application/controllers/api/v1/crm/Reihungstest.php @@ -85,7 +85,7 @@ class Reihungstest extends APIv1_Controller $result = $this->ReihungstestModel->addJoin('public.tbl_person', 'person_id'); if ($result->error == EXIT_SUCCESS) { - $result = $this->ReihungstestModel->addJoin('public.tbl_ort', 'tbl_ort.ort_kurzbz = tbl_rt_person.ort_kurzbz'); + $result = $this->ReihungstestModel->addJoin('public.tbl_ort', 'tbl_ort.ort_kurzbz = tbl_rt_person.ort_kurzbz', 'LEFT'); if ($result->error == EXIT_SUCCESS) { $result = $this->ReihungstestModel->loadWhere(array('person_id' => $person_id));