This commit is contained in:
ma0068
2023-12-22 12:04:03 +01:00
parent 5d4ec93b09
commit c2fb582db0
2 changed files with 13 additions and 4 deletions
@@ -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');
@@ -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 = "