feat(correction): user can mark dossier en_construction as resolved
This commit is contained in:
parent
8839ac7f76
commit
a32014d4fd
7 changed files with 28 additions and 3 deletions
|
@ -227,6 +227,10 @@ module Users
|
|||
editing_fork_origin.merge_fork(@dossier)
|
||||
RoutingEngine.compute(editing_fork_origin)
|
||||
|
||||
if cast_bool(params.dig(:dossier, :pending_correction_confirm))
|
||||
editing_fork_origin.resolve_pending_correction!
|
||||
end
|
||||
|
||||
redirect_to dossier_path(editing_fork_origin)
|
||||
else
|
||||
flash.now.alert = errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue