Nodes get special handling with flags: on the node type form you can set a default value for new nodes for each flag that shows a checkbox in the node form.
The node create form then gets the checkbox for the flag set with the default value.
However, when multiple flags are involved, only the first flag is taken into account.
To reproduce:
- create 2 flags on the same node type, set to show on the entity form
- in the node type admin form, set both flags to be flagged by default
- go to create a new node. only the first flag's checkbox is selected
Comments
Comment #1
joachim commentedComment #2
shabana.navas commentedThe patch works. There is a tiny typo in the comment:
// Keep track of whether the entity is new or not, as we've about to fiddleshould be
// Keep track of whether the entity is new or not, as we're about to fiddleComment #3
joachim commentedThanks for reviewing!
Committed, with the fix for the typo.