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