Commit 04ea81dc639a3e466d4d4669ad95d254270482e1

Authored by Eriksen Costa
1 parent 9c9dd5ef
Exists in master

Corrigido cadastro de "Escola-série" e "Turma" para não selecionar o checkbox de…

… carga horária padrão quando este não deveria estar selecionado
ieducar/intranet/educar_escola_serie_cad.php
... ... @@ -253,10 +253,12 @@ class indice extends clsCadastro
253 253  
254 254 foreach ($lista as $registro) {
255 255 $checked = '';
  256 + $usarComponente = FALSE;
256 257  
257 258 if ($this->escola_serie_disciplina[$registro->id] == $registro->id) {
258 259 $checked = 'checked="checked"';
259 260 }
  261 +
260 262 if (is_null($this->escola_serie_disciplina_carga[$registro->id]) ||
261 263 0 == $this->escola_serie_disciplina_carga[$registro->id]) {
262 264 $usarComponente = TRUE;
... ... @@ -264,6 +266,7 @@ class indice extends clsCadastro
264 266 else {
265 267 $cargaHoraria = $this->escola_serie_disciplina_carga[$registro->id];
266 268 }
  269 +
267 270 $cargaComponente = $registro->cargaHoraria;
268 271  
269 272 $conteudo .= '<div style="margin-bottom: 10px; float: left">';
... ...
ieducar/intranet/educar_turma_cad.php
... ... @@ -361,6 +361,7 @@ class indice extends clsCadastro
361 361  
362 362 foreach ($lista as $registro) {
363 363 $checked = '';
  364 + $usarComponente = FALSE;
364 365  
365 366 if (isset($componentes[$registro->id])) {
366 367 $checked = 'checked="checked"';
... ...