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
This commit is contained in:
paolo
2016-07-05 16:24:46 +02:00
parent 65613d2869
commit 8e37e85ecc
@@ -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));