Commit c8e945e48e3e2c6d07d545e5671c6cba67ef694d

Authored by Matheus Nicoski
1 parent 761c39db
Exists in 2.8 and in 6 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Pessa chave para receber a etapa

ieducar/intranet/educar_dispensa_disciplina_cad.php
... ... @@ -329,7 +329,7 @@ class indice extends clsCadastro
329 329 'ref_ano' => $registration->ano,
330 330 ];
331 331  
332   - $totalEtapas = LegacySchoolStage::query()->where($where)->count();
  332 + $totalEtapas['total'] = LegacySchoolStage::query()->where($where)->count();
333 333 $arrayEtapas = [];
334 334  
335 335 for ($i = 1; $i <= $totalEtapas['total']; $i++)
... ... @@ -338,7 +338,6 @@ class indice extends clsCadastro
338 338 }
339 339  
340 340 $arrayEtapas = array_diff($arrayEtapas, $this->etapa);
341   -
342 341 return max($arrayEtapas);
343 342 }
344 343  
... ...