diff --git a/application/controllers/api/v1/content/Dms.php b/application/controllers/api/v1/content/Dms.php index 059df2ffa..dd1156273 100644 --- a/application/controllers/api/v1/content/Dms.php +++ b/application/controllers/api/v1/content/Dms.php @@ -53,10 +53,11 @@ class Dms extends APIv1_Controller { $person_id = $this->get('person_id'); $dokument_kurzbz = $this->get('dokument_kurzbz'); + $no_file = $this->get('no_file'); if (isset($person_id)) { - $result = $this->dmslib->getAktenAcceptedDms($person_id, $dokument_kurzbz); + $result = $this->dmslib->getAktenAcceptedDms($person_id, $dokument_kurzbz, $no_file); $this->response($result, REST_Controller::HTTP_OK); } diff --git a/application/libraries/DmsLib.php b/application/libraries/DmsLib.php index d0b64b9cb..a4b82ef12 100644 --- a/application/libraries/DmsLib.php +++ b/application/libraries/DmsLib.php @@ -68,11 +68,11 @@ class DmsLib /** * */ - public function getAktenAcceptedDms($person_id, $dokument_kurzbz = null) + public function getAktenAcceptedDms($person_id, $dokument_kurzbz = null, $no_file = null) { $result = $this->ci->AkteModel->getAktenAcceptedDms($person_id, $dokument_kurzbz); - if (hasData($result)) + if (hasData($result) && $no_file == null) { for ($i = 0; $i < count($result->retval); $i++) {