Skip to content

Commit

Permalink
Merge branch 'master' of github.com:UNICEF01/busca-ativa-escolar-api
Browse files Browse the repository at this point in the history
  • Loading branch information
manoelsouzaunicef committed Nov 11, 2019
2 parents 4fd6f2c + ac9f6c1 commit b91ee84
Show file tree
Hide file tree
Showing 8 changed files with 484 additions and 418 deletions.
7 changes: 7 additions & 0 deletions app/Child.php
Expand Up @@ -372,6 +372,13 @@ public function rejectAlert()
$this->currentCase->cancel_reason = ChildCase::CANCEL_REASON_REJECTED_ALERT;
$this->currentCase->save();

/**
* atualiza o campo atert_status da tabela case_steps_alerta
*/
$alertStep = $this->currentStep;
$alertStep->alert_status = 'rejected';
$alertStep->save();

$this->alert_status = 'rejected';
$this->child_status = self::STATUS_CANCELLED;
$this->save();
Expand Down

0 comments on commit b91ee84

Please sign in to comment.