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

joachim’s picture

Status: Active » Needs review
StatusFileSize
new758 bytes
shabana.navas’s picture

Status: Needs review » Reviewed & tested by the community

The 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 fiddle
should be
// Keep track of whether the entity is new or not, as we're about to fiddle

joachim’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reviewing!

Committed, with the fix for the typo.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.