Skip to content

Commit

Permalink
Update Os.php (#2200)
Browse files Browse the repository at this point in the history
Exclusão de linhas de erro apresentado na aba Ordem de Serviço
  • Loading branch information
barretowiisk authored Sep 18, 2023
1 parent 0d00654 commit 52a7e8a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions application/controllers/Os.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,14 +844,6 @@ public function anexar()
}
}

if (count($error) > 0) {
echo json_encode(['result' => false, 'mensagem' => 'Nenhum arquivo foi anexado.']);
} else {
log_info('Adicionou anexo(s) a uma OS. ID (OS): ' . $this->input->post('idOsServico'));
echo json_encode(['result' => true, 'mensagem' => 'Arquivo(s) anexado(s) com sucesso .']);
}
}

public function excluirAnexo($id = null)
{
if ($id == null || !is_numeric($id)) {
Expand Down

0 comments on commit 52a7e8a

Please sign in to comment.