mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
Merge origin/ci into ci
This commit is contained in:
@@ -120,7 +120,7 @@ class Prestudent extends APIv1_Controller
|
||||
{
|
||||
$this->load->model('crm/RtPerson_model', 'RtPersonModel');
|
||||
|
||||
if(isset($ddReihungstest['new']) && $ddReihungstest['new'] === true)
|
||||
if(isset($ddReihungstest['new']) && $ddReihungstest['new'] == true)
|
||||
{
|
||||
// Remove new parameter to avoid DB insert errors
|
||||
unset($ddReihungstest['new']);
|
||||
@@ -149,8 +149,7 @@ class Prestudent extends APIv1_Controller
|
||||
|
||||
private function _validateAddReihungstest($ddReihungstest = NULL)
|
||||
{
|
||||
if (!isset($ddReihungstest['person_id']) || !isset($ddReihungstest['rt_id']) ||
|
||||
!isset($ddReihungstest['ort_kurzbz']))
|
||||
if (!isset($ddReihungstest['person_id']) || !isset($ddReihungstest['rt_id']))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -135,6 +135,7 @@ class Phrases extends FHC_Controller
|
||||
{
|
||||
$phrase_inhalt_id = $this->input->post('phrase_inhalt_id', TRUE);
|
||||
$data['orgeinheit_kurzbz'] = $this->input->post('oe_kurzbz', TRUE);
|
||||
$data['orgform_kurzbz'] = $this->input->post('orgform_kurzbz', TRUE);
|
||||
$data['text'] = $this->input->post('text', TRUE);
|
||||
$data['description'] = $this->input->post('description', TRUE);
|
||||
$data['sprache'] = $this->input->post('sprache', TRUE);
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
/*
|
||||
* OrgForm widget
|
||||
*/
|
||||
class orgform_widget extends Widget
|
||||
class orgform_widget extends Widget
|
||||
{
|
||||
protected $_htmltagname = 'orgform_kurzbz';
|
||||
|
||||
public function display($data)
|
||||
public function display($data)
|
||||
{
|
||||
$this->load->model('codex/Orgform_model', 'OrgFormModel');
|
||||
$res = $this->OrgFormModel->load();
|
||||
@@ -33,10 +33,10 @@ class orgform_widget extends Widget
|
||||
{
|
||||
$item = array
|
||||
(
|
||||
'name' => $obj->orgform_kurzbz.' ('.$obj->bezeichnung.')',
|
||||
'name' => $obj->orgform_kurzbz.' ('.$obj->bezeichnung.')',
|
||||
'value' => $obj->orgform_kurzbz
|
||||
);
|
||||
if (isset($data['orgform']) && $obj->orgform_kurzbz == $data['orgform'])
|
||||
if (isset($data['orgform_kurzbz']) && $obj->orgform_kurzbz == $data['orgform_kurzbz'])
|
||||
$item['selected'] = true;
|
||||
else
|
||||
$item['selected'] = false;
|
||||
|
||||
Reference in New Issue
Block a user