diff --git a/application/controllers/shared/Organisaties.php b/application/controllers/shared/Organisaties.php index 26dd0d7..fbe1474 100644 --- a/application/controllers/shared/Organisaties.php +++ b/application/controllers/shared/Organisaties.php @@ -203,10 +203,11 @@ class Organisaties extends MY_Controller{ if ($this->Autorisaties_model->check_autorisatie($this->userrole, SUPERUSER) > 0) { $orgid =$this->input->post("id"); $errortekst = ''; + $soort = $this->input->post("soort"); - if($this->input->post("soort")== "1") $actief = 1; + if($soort == 1) $actief = 1; else{ $valtonderID = $this->input->post("valtonderID"); - $actief = $this->Organisaties_model->get_fieldvalue(["valtonder_id" => $valtonderID], 'actief'); + $actief = $this->Organisaties_model->get_fieldvalue(["id" => $valtonderID], 'actief'); if($actief == 0) $errortekst .= "Activeer eerst de gearchiveerd organisatie(s) boven deze organisatie."; else $actief = 1; } diff --git a/application/views/monpas/pages/organisaties.php b/application/views/monpas/pages/organisaties.php index af5a865..f370241 100644 --- a/application/views/monpas/pages/organisaties.php +++ b/application/views/monpas/pages/organisaties.php @@ -143,7 +143,7 @@