Skip to content

Commit

Permalink
don't apply the template we are return from validator
Browse files Browse the repository at this point in the history
  • Loading branch information
soufiene-slimi committed Jun 5, 2020
1 parent 3e88c52 commit 3d5830c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Models/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class Template extends Model
*/
public function apply()
{
Session::now('_old_input', json_decode($this->form, true));
if (! Session::has('_old_input')) {
Session::now('_old_input', json_decode($this->form, true));
}
}

/**
Expand Down

0 comments on commit 3d5830c

Please sign in to comment.