diff --git a/application/controllers/shared/Menu.php b/application/controllers/shared/Menu.php index 052ced9..6e97fb7 100644 --- a/application/controllers/shared/Menu.php +++ b/application/controllers/shared/Menu.php @@ -118,7 +118,7 @@ class Menu extends MY_Controller{ $this->load->helper('download'); // $data = file_get_contents($this->rootpath ."/documents/".$handleiding->documentnaam); - $data = file_get_contents("/home/mps/prod/documents/".$handleiding->documentnaam);//TW: rootpath is verkeerd door symlink + $data = file_get_contents("/home/monpas/prod/documents/".$handleiding->documentnaam);//TW: rootpath is verkeerd door symlink force_download($handleiding->documentnaam, $data); } function getsubmenu(){ diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php index df47282..148a9f1 100644 --- a/application/core/MY_Controller.php +++ b/application/core/MY_Controller.php @@ -55,7 +55,8 @@ class MY_Controller extends CI_Controller{ // public $version = '1.17.70'; // bopropswop // public $version = '1.17.72'; // data2mysql fout // public $version = '1.17.73'; // 0-waarden aantal tlvs in omvang extra ondersteuning - public $version = '1.17.75'; // mogelijkheid tot uitzetten extra ondersteuning in divmeters +// public $version = '1.17.75'; // mogelijkheid tot uitzetten extra ondersteuning in divmeters + public $version = '1.17.76'; // cluster scans passend onderwijs public $partituurid; public $globProfielVersieID = 1; diff --git a/application/libraries/monpas/Hoofdstukkeuze.php b/application/libraries/monpas/Hoofdstukkeuze.php index 8b8c9ae..aca542c 100644 --- a/application/libraries/monpas/Hoofdstukkeuze.php +++ b/application/libraries/monpas/Hoofdstukkeuze.php @@ -43,7 +43,7 @@ class Hoofdstukkeuze $this->setInleiding(); - $this->checkModulenummer(); +// $this->checkModulenummer(); $this->checkClusterID(); @@ -111,26 +111,25 @@ class Hoofdstukkeuze /** * */ - private function checkModulenummer()//hoofstukken bij een instrument dat niet bij een cluster is ingedeeld - { - if ($this->clusterid != 0 && $this->clusterid != 7 && $this->clusterid != 10 && $this->clusterid != 11) return; - if ($this->modulenr == 0) return; - return $this->setSchoolScores(); - -// else { -// //aanvullen databases lokaal & productie komen niet helemaal overeen lijkt het uitzoeken -// } - } +// private function checkModulenummer()//hoofstukken bij een instrument dat niet bij een cluster is ingedeeld +// { +// if ($this->clusterid != 0 && $this->clusterid != 7 && $this->clusterid != 10 && $this->clusterid != 11) return; +// if ($this->modulenr == 0) return; +// return $this->setSchoolScores(); +// +//// } +// } private function checkClusterID(){//hoofdstukken bij een instrument dat tot een cluster behoort - if(!$this->clusterid) return; if ($this->clusterid == 1 || $this->clusterid ==7 ) return;// (1)partituren (7) framwork monitoren, Niet in Sop - if( $this->clusterid == 2 || + if( $this->clusterid ==0|| + $this->clusterid == 2 || $this->clusterid == 3 || $this->clusterid == 5 || $this->clusterid == 8 || $this->clusterid == 13|| - $this->clusterid == 14) { + $this->clusterid == 14 || + $this->clusterid == 15 ) { $this->setSchoolScores(); diff --git a/application/models/shared/Organisaties_model.php b/application/models/shared/Organisaties_model.php index c971cd1..21ae65a 100644 --- a/application/models/shared/Organisaties_model.php +++ b/application/models/shared/Organisaties_model.php @@ -263,7 +263,7 @@ class Organisaties_model extends MY_Model{ return $this->get_query_row(); } function getbgsonderswv($swvid){ - $this->sql="SELECT O1.id, O1.soort, O1.naam, O1.plaats, O1.actief + $this->sql="SELECT O1.id, O1.soort, O1.naam, O1.plaats, O1.actief, O2.naamkort AS kamer FROM tb_organisaties O1 JOIN tb_organisaties O2 ON O2.id = O1.valtonder_id JOIN tb_organisaties O3 ON O3.id = O2.valtonder_id @@ -271,7 +271,7 @@ class Organisaties_model extends MY_Model{ AND O1.id <> O3.valtonder_id AND O2.id <> O2.valtonder_id AND O1.actief = 1 - ORDER BY O1.naamkort "; + ORDER BY O2.naamkort, O1.naamkort "; return $this->get_query_result(); }