add comment
This commit is contained in:
parent
516cafc72a
commit
e2ff64a119
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ class DemandesController < ApplicationController
|
|||
def update
|
||||
dossier = Dossier.find(params[:dossier_id])
|
||||
if !dossier.formulaire.nil?
|
||||
# TODO: redirect to start with an error message
|
||||
raise "La modification du formulaire n'est pas possible"
|
||||
end
|
||||
dossier.update_attributes(formulaire_id: params[:formulaire])
|
||||
|
|
Loading…
Reference in a new issue