Fix procedures with multiple dossier link champs
This commit is contained in:
parent
f0610c493c
commit
c0344fc30e
4 changed files with 10 additions and 4 deletions
|
@ -2,6 +2,8 @@ class Champs::DossierLinkController < ApplicationController
|
|||
before_action :authenticate_logged_user!
|
||||
|
||||
def show
|
||||
@position = params[:position]
|
||||
|
||||
if params[:dossier].key?(:champs_attributes)
|
||||
@dossier_id = params[:dossier][:champs_attributes][params[:position]][:value]
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue