DescriptionController: cosmetic

This commit is contained in:
Simon Lehericey 2017-03-30 10:41:20 +02:00
parent 157d1818b2
commit 866a54085c

View file

@ -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