Skip to content

Commit

Permalink
Merge pull request #70 from DomLeMarin/fix_Actionplan_save_review_date
Browse files Browse the repository at this point in the history
fix the saving of the review date in the ActionplanController
  • Loading branch information
dbarzin authored Mar 1, 2024
2 parents 8cc330b + e396059 commit 0a435a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Http/Controllers/ActionplanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ public function save(Request $request)
// save control
$control = Control::find($id);
$control->action_plan = request('action_plan');
$control->plan_date = request('plan_date');
$control->update();

// save next control
$next_id = $control->next_id;
$next_control = Control::find($next_id);
$next_control->plan_date = request('plan_date');
$next_control->update();

return redirect('/actions');
}
Expand Down

0 comments on commit 0a435a9

Please sign in to comment.