Merge pull request #6446 from tchak/fix-procedure-external_id
fix(dossier_projection_service): select external_id on champs
This commit is contained in:
commit
92f463bc03
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class DossierProjectionService
|
||||||
types_de_champ: { stable_id: fields.map { |f| f[COLUMN] } },
|
types_de_champ: { stable_id: fields.map { |f| f[COLUMN] } },
|
||||||
dossier_id: dossiers_ids
|
dossier_id: dossiers_ids
|
||||||
)
|
)
|
||||||
.select(:dossier_id, :value, :type_de_champ_id, :stable_id, :type, :data) # we cannot pluck :value, as we need the champ.to_s method
|
.select(:dossier_id, :value, :type_de_champ_id, :stable_id, :type, :external_id, :data) # we cannot pluck :value, as we need the champ.to_s method
|
||||||
.group_by(&:stable_id) # the champs are redispatched to their respective fields
|
.group_by(&:stable_id) # the champs are redispatched to their respective fields
|
||||||
.map do |stable_id, champs|
|
.map do |stable_id, champs|
|
||||||
field = fields.find { |f| f[COLUMN] == stable_id.to_s }
|
field = fields.find { |f| f[COLUMN] == stable_id.to_s }
|
||||||
|
|
Loading…
Reference in a new issue