remove empty option at the start of default options
This commit is contained in:
parent
c638ac0261
commit
fb66434a15
1 changed files with 2 additions and 2 deletions
|
@ -778,9 +778,9 @@ class TypeDeChamp < ApplicationRecord
|
||||||
self.drop_down_options = nil
|
self.drop_down_options = nil
|
||||||
elsif !drop_down_options_changed?
|
elsif !drop_down_options_changed?
|
||||||
self.drop_down_options = if linked_drop_down_list?
|
self.drop_down_options = if linked_drop_down_list?
|
||||||
['', '--Fromage--', 'bleu de sassenage', 'picodon', '--Dessert--', 'éclair', 'tarte aux pommes']
|
['--Fromage--', 'bleu de sassenage', 'picodon', '--Dessert--', 'éclair', 'tarte aux pommes']
|
||||||
else
|
else
|
||||||
['', 'Premier choix', 'Deuxième choix']
|
['Premier choix', 'Deuxième choix']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue