Closed (fixed)
Project:
Key
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 May 2021 at 11:04 UTC
Updated:
9 Oct 2022 at 17:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
roderikHm, maybe it's just my own lack of recent experience creating Drupal edit screens. (I'm from old times where a #select option had the first option in the select list added as
'' => t('- Select -').)I only now realize that all I have to do is add #empty_option to the element myself.
Still, IMHO this is a good thing for the module to do by default, because as said in the description; an edit screen for a new $thing shouldn't pre-select the first key in the list.
And here's a fixed patch.
Comment #3
rlhawkI agree completely. Thanks for the patch.
Comment #5
rlhawk