fix: change > char in favor of . in linked_drop_column.column_id

Rails `'>'.to_json` produce `\u003e` because of an html entity escaping system to work around some bugs in browser (see dd8f7185fa/activesupport/lib/active_support/json/encoding.rb (L43) )

But our waf dislike `\u003e` and reject xhr request with such char
This commit is contained in:
simon lehericey 2024-11-15 16:44:32 +01:00
parent c65fcf0a29
commit fa64e8f112
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -43,7 +43,7 @@ class Columns::LinkedDropDownColumn < Columns::ChampColumn
private
def column_id = "type_de_champ/#{stable_id}->#{path}"
def column_id = "type_de_champ/#{stable_id}.#{path}"
def typed_value(champ)
primary_value, secondary_value = unpack_values(champ.value)