use routable_type_de_champ
This commit is contained in:
parent
174f7a7c53
commit
f61498693a
2 changed files with 6 additions and 2 deletions
|
@ -34,8 +34,8 @@ class Procedure::OneGroupeManagementComponent < ApplicationComponent
|
|||
end
|
||||
|
||||
def available_targets_for_select
|
||||
@revision.types_de_champ_public
|
||||
.filter { |tdc| [:drop_down_list].include?(tdc.type_champ.to_sym) }
|
||||
@revision
|
||||
.routable_types_de_champ
|
||||
.map { |tdc| [tdc.libelle, champ_value(tdc.stable_id).to_json] }
|
||||
end
|
||||
|
||||
|
|
|
@ -236,6 +236,10 @@ class ProcedureRevision < ApplicationRecord
|
|||
[coordinate, coordinate&.type_de_champ]
|
||||
end
|
||||
|
||||
def routable_types_de_champ
|
||||
types_de_champ_public.filter { |tdc| [:drop_down_list].include?(tdc.type_champ.to_sym) }
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def compute_estimated_fill_duration
|
||||
|
|
Loading…
Reference in a new issue