From c2fb582db093d7a088d37daae77403c8ba6792ee Mon Sep 17 00:00:00 2001 From: ma0068 Date: Fri, 22 Dec 2023 12:04:03 +0100 Subject: [PATCH] temp --- application/controllers/components/stv/Notiz.php | 15 +++++++++++---- application/models/person/Notiz_model.php | 2 ++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/application/controllers/components/stv/Notiz.php b/application/controllers/components/stv/Notiz.php index 00935a95d..89466f97c 100644 --- a/application/controllers/components/stv/Notiz.php +++ b/application/controllers/components/stv/Notiz.php @@ -62,19 +62,26 @@ class Notiz extends FHC_Controller public function addNewNotiz($person_id) { - var_dump($this->input->post('titel')); - var_dump($this->input->post('anhang')); +/* var_dump($this->input->post('titel')); + var_dump($this->input->post('anhang'));*/ var_dump($_FILES); + $this->load->library('form_validation'); + $this->load->library('DmsLib'); + + $name = $this->input->post('anhang')['name']; - $this->form_validation->set_rules('titel', 'titel', 'required'); + //$this->DmsLib->add($name, $mimetype, $fileHandle); + + +/* $this->form_validation->set_rules('titel', 'titel', 'required'); $this->form_validation->set_rules('text', 'Text', 'required'); if ($this->form_validation->run() == false) { return $this->outputJsonError($this->form_validation->error_array()); - } + }*/ $this->load->model('person/Notiz_model', 'NotizModel'); diff --git a/application/models/person/Notiz_model.php b/application/models/person/Notiz_model.php index fbebc3bd8..372fb8485 100644 --- a/application/models/person/Notiz_model.php +++ b/application/models/person/Notiz_model.php @@ -136,6 +136,7 @@ class Notiz_model extends DB_Model /** * Add a Notiz for a given person */ + //TODO(manu) add type for Notizzuordnung public function addNotizForPersonWithDoc($person_id, $titel, $text, $erledigt, $verfasser_uid, $von, $bis) { // Loads model Notizzuordnung_model @@ -187,6 +188,7 @@ class Notiz_model extends DB_Model * gets all Notizen with Documententries for a person * @param $person_id */ + //Todo(Manu) rewrite in CI-Style public function getNotizWithDocEntries($person_id) { $qry = "