fix(sentry#6013588148): allowing recasting from drop_down_list to multiple_drop_down_list raises due to call to .selected_options

This commit is contained in:
mfo 2024-10-25 13:49:32 +02:00
parent 1b188f65b0
commit d66487138f
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -763,7 +763,7 @@ class TypeDeChamp < ApplicationRecord
when ['integer_number', 'decimal_number'], # recast numbers automatically when ['integer_number', 'decimal_number'], # recast numbers automatically
['decimal_number', 'integer_number'], # may lose some data, but who cares ? ['decimal_number', 'integer_number'], # may lose some data, but who cares ?
['text', 'textarea'], # allow short text to long text ['text', 'textarea'], # allow short text to long text
['drop_down_list', 'multiple_drop_down_list'], # single list can become multi # ['drop_down_list', 'multiple_drop_down_list'], # single list can become multi
['date', 'datetime'], # date <=> datetime ['date', 'datetime'], # date <=> datetime
['datetime', 'date'] # may lose some data, but who cares ? ['datetime', 'date'] # may lose some data, but who cares ?
true true