Merge pull request #990 from sgmap/fix_775

[Fix #775] Dans une attestation les champs doivent être affichés correctement
This commit is contained in:
Mathieu Magnin 2017-12-01 12:29:01 +01:00 committed by GitHub
commit 9002cb70fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,8 @@ class Champ < ActiveRecord::Base
case type_champ
when 'date'
Date.parse(value).strftime('%d/%m/%Y')
when 'multiple_drop_down_list'
drop_down_list.selected_options_without_decorator(self).join(', ')
else
value.to_s
end