Merge pull request #10988 from mfo/US/fix-exports-recasting-simple-to-multiple

Correctif: ETQ instructeur je peux exporter des mes dossiers au format xlsx même si le formulaire usager a changer
This commit is contained in:
mfo 2024-10-28 08:55:55 +00:00 committed by GitHub
commit af878ca5b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -763,7 +763,7 @@ class TypeDeChamp < ApplicationRecord
when ['integer_number', 'decimal_number'], # recast numbers automatically
['decimal_number', 'integer_number'], # may lose some data, but who cares ?
['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
['datetime', 'date'] # may lose some data, but who cares ?
true