tussenopslag

This commit is contained in:
Monique
2022-11-17 11:34:44 +01:00
parent 8d3553318b
commit a7bc12a254
25 changed files with 2433 additions and 1986 deletions
@@ -297,7 +297,6 @@ class Rapijkpunten extends MY_Controller{
$orgversies = $this->clean_input('selectie');
if (!$orgid || !$orgversies || !$orguserid) return;
$aantal = count($orgversies);
$userLijsten = new Userlijsten($orguserid, $orgid, $orgversies);
$lijsten = $userLijsten->getLijsten();
@@ -160,7 +160,8 @@ function getambitie(){
}
$toporgs = rtrim($toporgs, ',' );
$ambitie = $this->Ambities_model->mh_get_ambitie($module, $ambitieorgs, $toporgs);
$aantalY = $this->Ijkpunten_model->telijkpunten_bij_orgs($toporgs, $module);
$ambitie = $this->Ambities_model->mh_get_ambitie($module, $ambitieorgs, $toporgs, $aantalY);
if(!$ambitie) return json_encode("Er is geen actieve versie bij het instrument");
echo json_encode($ambitie);
@@ -175,10 +176,14 @@ function saveAmbitie(){
if($this->super == false){
if($this->super == false) {
if ($orgid != $this->orgid) return;
$result = $this->Autorisatiesnivos_model->checkmanage($this->userid, $this->orgid);
if(!$result) return;
$saveorg = $this->globorgid;
if (!$result) return;
}
else{
$saveorg = $orgid;
}
$bestaand = $this->Ambities_model->get_fieldvalue(['organisatie_id'=>$orgid,
'orgversie_id' =>$orgversieid], 'id');