fix type_de_champ controller move param

This commit is contained in:
Paul Chavard 2020-07-22 11:08:06 +02:00
parent e493bfbf31
commit ad4dff819e

View file

@ -27,7 +27,7 @@ module NewAdministrateur
end
def move
@procedure.draft_revision.move_type_de_champ(type_de_champ_stable_id, params[:position].to_i)
@procedure.draft_revision.move_type_de_champ(type_de_champ_stable_id, (params[:position] || params[:order_place]).to_i)
head :no_content
end