nieuwe versie

This commit is contained in:
Monique
2021-07-13 12:53:03 +02:00
parent 20fb7267a8
commit 444829340a
36 changed files with 655 additions and 1123 deletions
+10 -8
View File
@@ -87,15 +87,17 @@ class Sopoud extends MY_Controller{
function Getversies($profielid,$chapterid){
$versies = [];
$hoofdstuk = $this->Hoofdstukken_model->get_record_by_id($chapterid);
if ($hoofdstuk->module == 0 ) return $versies;
$module = $this->Modules_model->get_record_by_id($hoofdstuk->module);
if ($module->versietype == 1) {
$versies = $this->getschooljaarversies($profielid, $chapterid);
}
if ($module->versietype == 2) {
$versies = $this->getlijstversies($profielid, $module->sysnr, $chapterid);
} ;
$module = $this->Modules_model->get_record_by_id( $hoofdstuk->module);
if($module){
if (intval($module->versietype) == 1) {
$versies = $this->getschooljaarversies($profielid, $chapterid);
}
if (intval($module->versietype) == 2) {
$versies = $this->getlijstversies($profielid, $module->sysnr, $chapterid);
} ;
}
return $versies;
}