Skip to content

Commit

Permalink
Faz ajustes em arquivos PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
edersoares committed Jul 2, 2024
1 parent 286ee06 commit 4918358
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 30 deletions.
4 changes: 3 additions & 1 deletion app/Models/Concerns/SoftDeletes/LegacySoftDeletes.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ protected function performDeleteOnModel()
return $this->setKeysForSaveQuery($this->newModelQuery())->forceDelete();
}

return $this->runSoftDelete();
$this->runSoftDelete();

return null;
}

protected function runSoftDelete()
Expand Down
1 change: 1 addition & 0 deletions ieducar/intranet/include/clsCadastro.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function Processar()

public function Inicializar()
{
return '';
}

public function Formular()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
<?php

?>
<?php /*
caso o campo seja de busca criar uma variavel
*** $obrigatorio = false; *** antes de dar o include do arquivo
//- Adicionado por Adriano Erik Weiguert Nagasava
$escola_obrigatorio = true //- Indica se o campo escola vai ser obrigatório ou não
$obrigatorio = true;
include("include/pmieducar/educar_pesquisa_instituicao_escola.php");
*/

//** 4 - Escola 2 - institucional 1 - poli-institucional
$obj_permissao = new clsPermissoes();
$nivel_usuario = $obj_permissao->nivel_acesso($this->pessoa_logada);

Expand All @@ -37,16 +21,6 @@
}
}

/* if(isset($_GET["ref_cod_instituicao"]) && !empty($_GET["ref_cod_instituicao"]) && is_array($opcoes_instituicao) && array_key_exists($_GET["ref_cod_instituicao"],$opcoes_instituicao) )
{
$this->ref_cod_instituicao = $_GET["ref_cod_instituicao"];
}
else
{
$this->ref_cod_instituicao = null;
}*/

//**** javascript Array dinamico das instituicoes - escolas
$obj_instituicao = new clsPmieducarInstituicao();
$lista_instituicao23 = $obj_instituicao->lista();

Expand Down Expand Up @@ -74,7 +48,7 @@
}

if ($nivel_usuario == 1 || $nivel_usuario == 2) {
$selecione = $nivel_usuario == 2 ? 'Selecione uma escola' : 'Selecione uma escola';
$selecione = 'Selecione uma escola';
$opcoes = ['' => $selecione];
$objTemp = new clsPmieducarEscola();
if ((!empty($this->ref_cod_instituicao) && $nivel_usuario == 1) || $nivel_usuario == 2) {
Expand Down
4 changes: 2 additions & 2 deletions ieducar/lib/Portabilis/Controller/ApiCoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function canGet()

protected function canChange()
{
throw new Exception('canChange must be overwritten!');
return false;
}

protected function canPost()
Expand Down Expand Up @@ -248,7 +248,7 @@ public function generate(CoreExt_Controller_Page_Interface $instance)
$this->messenger->append('Exception: ' . $e->getMessage(), 'error', $encodeToUtf8 = true);
}

echo $this->prepareResponse();
$this->prepareResponse();
}

/**
Expand Down

0 comments on commit 4918358

Please sign in to comment.