add upper_tdcs to condition_form

This commit is contained in:
simon lehericey 2022-09-26 21:23:10 +02:00
parent 7e1963865e
commit 8efd305256
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ module Administrateurs
end
def condition_form
ConditionForm.new(condition_params)
ConditionForm.new(condition_params.merge({ upper_tdcs: @upper_tdcs }))
end
def retrieve_coordinate_and_uppers

View file

@ -2,7 +2,7 @@ class ConditionForm
include ActiveModel::Model
include Logic
attr_accessor :top_operator_name, :rows
attr_accessor :top_operator_name, :rows, :upper_tdcs
def to_condition
case sub_conditions.count