Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portabilis patch 03/12/2024 #981

Merged
merged 10 commits into from
Dec 3, 2024
14 changes: 9 additions & 5 deletions ieducar/intranet/educar_turma_det.php
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
use App\Models\View\Discipline;
use Illuminate\Support\Facades\DB;

return new class() extends clsDetalhe
return new class extends clsDetalhe
{
public $titulo;

@@ -57,7 +57,11 @@
public function Gerar()
{
$this->titulo = 'Turma - Detalhe';
$this->cod_turma = $_GET['cod_turma'];
$this->cod_turma = request()->integer('cod_turma');

if (is_null($this->cod_turma) || $this->cod_turma === 0) {
$this->simpleRedirect(url: 'educar_turma_lst.php');
}

$dias_da_semana = [
'' => 'Selecione',
@@ -75,7 +79,7 @@ public function Gerar()
$not_access = LegacySchoolClass::filter(['school_user' => $this->pessoa_logada])->where(column: 'cod_turma', operator: $this->cod_turma)->doesntExist();
}

$lst_obj = (new clsPmieducarTurma())->lista(
$lst_obj = (new clsPmieducarTurma)->lista(
int_cod_turma: $this->cod_turma,
visivel: [
'true',
@@ -117,7 +121,7 @@ public function Gerar()
$det_ser = $obj_ser->detalhe();
$registro['ref_ref_cod_serie'] = $det_ser['nm_serie'];

$obj_permissoes = new clsPermissoes();
$obj_permissoes = new clsPermissoes;

$this->addDetalhe(detalhe: ['Ano', $this->ano]);

@@ -269,7 +273,7 @@ public function Gerar()
);
}
} elseif ($padrao_ano_escolar == 0) {
$obj = new clsPmieducarTurmaModulo();
$obj = new clsPmieducarTurmaModulo;
$obj->setOrderby(strNomeCampo: 'sequencial ASC');
$lst = $obj->lista(int_ref_cod_turma: $this->cod_turma);