Skip to content

Commit

Permalink
Exibe mensagem de erro ao não conseguir excluir
Browse files Browse the repository at this point in the history
  • Loading branch information
edersoares committed Mar 7, 2019
1 parent fc23f6c commit 4102f5a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ieducar/modules/FormulaMedia/Views/EditController.php
Expand Up @@ -144,6 +144,23 @@ public function Gerar()
$tipoFormula->getEnums(), $this->getEntity()->get('tipoFormula'));
}

/**
* Apaga um registro no banco de dados e redireciona para a página indicada
* pela opção "delete_success".
*
* @see clsCadastro::Excluir()
*/
public function Excluir()
{
try {
parent::Excluir();
} catch (Throwable $throwable) {
return false;
}

return true;
}


/**
* Implementa uma rotina de criação ou atualização de registro padrão para
Expand Down

0 comments on commit 4102f5a

Please sign in to comment.