Commit 30be0f1a2e735428e58b36f5813dc6b94efef5a8
1 parent
1c037ff0
Exists in
master
#26 Exibir corretamente módulos do ano letivo
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
ieducar/intranet/educar_ano_letivo_modulo_cad.php
... | ... | @@ -147,7 +147,7 @@ class indice extends clsCadastro |
147 | 147 | } |
148 | 148 | |
149 | 149 | $qtd_modulo = count($this->ano_letivo_modulo) == 0 ? |
150 | - 1 : count($this->ano_letivo_modulo) + 1; | |
150 | + 0 : count($this->ano_letivo_modulo) + 1; | |
151 | 151 | |
152 | 152 | if (is_numeric($this->ref_ano) && |
153 | 153 | is_numeric($this->ref_ref_cod_escola) && |
... | ... | @@ -169,6 +169,7 @@ class indice extends clsCadastro |
169 | 169 | } |
170 | 170 | |
171 | 171 | if ($_POST['ref_cod_modulo'] && $_POST['data_inicio'] && $_POST['data_fim']) { |
172 | + $qtd_modulo = ($qtd_modulo==0 ? 1 : $qtd_modulo); | |
172 | 173 | $this->ano_letivo_modulo[$qtd_modulo]['sequencial_'] = $qtd_modulo; |
173 | 174 | $this->ano_letivo_modulo[$qtd_modulo]['ref_cod_modulo_'] = $_POST['ref_cod_modulo']; |
174 | 175 | $this->ano_letivo_modulo[$qtd_modulo]['data_inicio_'] = $_POST['data_inicio']; | ... | ... |