Skip to content

Commit

Permalink
Merge pull request #9554 from portabilis/honeybadger-96779464
Browse files Browse the repository at this point in the history
Corrige listagem e exibição para parâmetro inválido
  • Loading branch information
edineivaldameri authored Jun 14, 2023
2 parents 4706e60 + 87d40fc commit 7e1667b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ieducar/intranet/atendidos_cad.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ public function Gerar()
$this->campoTexto(nome: 'pessoa_contato', campo: 'Pessoa de contato na empresa', valor: $this->pessoa_contato, tamanhovisivel: '50', tamanhomaximo: '255');

$fileService = new FileService(urlPresigner: new UrlPresigner);
$files = $this->cod_pessoa_fj ? $fileService->getFiles(relation: LegacyIndividual::find($this->cod_pessoa_fj)) : [];
$files = $this->cod_pessoa_fj && is_numeric($this->cod_pessoa_fj) ? $fileService->getFiles(relation: LegacyIndividual::find($this->cod_pessoa_fj)) : [];
$this->addHtml(html: view(view: 'uploads.upload', data: ['files' => $files])->render());

// after change pessoa pai / mae
Expand Down
2 changes: 1 addition & 1 deletion ieducar/intranet/include/pessoa/clsPessoaFj.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function lista_rapida(
*/
public function detalhe()
{
if ($this->idpes) {
if ($this->idpes && is_numeric($this->idpes)) {
$objPessoa = new clsPessoa_($this->idpes);
$detalhePessoa = $objPessoa->detalhe();

Expand Down

0 comments on commit 7e1667b

Please sign in to comment.