mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
Infocenter notizen update
- removed html specialchars in quickinfo - notizen are retrieved by ajax when click on tablerow
This commit is contained in:
@@ -84,6 +84,7 @@ class InfoCenter extends Auth_Controller
|
||||
'saveZgvPruefung' => 'infocenter:rw',
|
||||
'saveAbsage' => 'infocenter:rw',
|
||||
'saveFreigabe' => 'infocenter:rw',
|
||||
'getNotiz' => 'infocenter:r',
|
||||
'saveNotiz' => 'infocenter:rw',
|
||||
'updateNotiz' => 'infocenter:rw',
|
||||
'reloadZgvPruefungen' => 'infocenter:r',
|
||||
@@ -533,6 +534,20 @@ class InfoCenter extends Auth_Controller
|
||||
$this->output->set_content_type('application/json')->set_output(json_encode($json));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a Notiz
|
||||
*/
|
||||
public function getNotiz()
|
||||
{
|
||||
$notiz_id = $this->input->get('notiz_id');
|
||||
|
||||
$result = $this->NotizModel->load(
|
||||
$notiz_id
|
||||
);
|
||||
|
||||
$this->output->set_content_type('application/json')->set_output(json_encode($result));
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves a new Notiz for a person
|
||||
* @param $person_id
|
||||
@@ -557,10 +572,10 @@ class InfoCenter extends Auth_Controller
|
||||
* Updates a new Notiz for a person
|
||||
* @param int $notiz_id
|
||||
* @param int $person_id
|
||||
* @return bool true if success
|
||||
*/
|
||||
public function updateNotiz($notiz_id, $person_id)
|
||||
public function updateNotiz($notiz_id)
|
||||
{
|
||||
$person_id = $this->input->post('person_id');
|
||||
$titel = $this->input->post('notiztitel');
|
||||
$text = $this->input->post('notiz');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user