laatste dingen

This commit is contained in:
Monique
2022-07-07 13:37:06 +02:00
parent 90415b8bcc
commit 653b59c7ec
3 changed files with 26 additions and 4 deletions
@@ -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;
}