Skip to content
Snippets Groups Projects
Commit 87a083f8 authored by Victor Picussa's avatar Victor Picussa
Browse files

[v1.12.6]Fix teacher

parent 5fc9839d
No related branches found
No related tags found
1 merge request!249[v1.12.6]Fix teacher
Pipeline #22840 failed
......@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## 1.12.6 - 2020-02-02
## Changed
- Fix teacher education mod dimension
## 1.12.5 - 2020-01-27
## Changed
- Fix duplicated cities in courseCount
......
......@@ -410,12 +410,8 @@ teacherApp.get('/', rqf.parse(), (req, res, next) => {
.where('(docente.tipo_docente = 1 OR docente.tipo_docente = 5) AND (turma.tipo_turma_id <= 3)');
if("education_level_mod" in req.dims) {
delete req.dims.education_level_mod;
req.hadEducationLevelMod = true;
req.sql.field('docente.etapas_mod_ensino_segmento_id', 'education_level_mod_id')
.where('docente.etapas_mod_ensino_segmento_id < 11')
.group('docente.etapas_mod_ensino_segmento_id')
.order('docente.etapas_mod_ensino_segmento_id');
req.sql.where('docente.etapas_mod_ensino_segmento_id < 11');
}
next();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment