DescriptionController: cosmetic
This commit is contained in:
parent
157d1818b2
commit
866a54085c
1 changed files with 2 additions and 4 deletions
|
@ -34,10 +34,8 @@ class Users::DescriptionController < UsersController
|
|||
check_mandatory_fields = !draft_submission?
|
||||
|
||||
if params[:champs]
|
||||
champs_service_errors = ChampsService.save_champs dossier.champs,
|
||||
params,
|
||||
check_mandatory_fields
|
||||
|
||||
champs_service_errors =
|
||||
ChampsService.save_champs(dossier.champs, params, check_mandatory_fields)
|
||||
return redirect_to_description_with_errors(dossier, champs_service_errors) if champs_service_errors.any?
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue