I can add a node with Premium level=delayed_premium. But if I re-edit the node the default Premium content level option is reverted to None. This is because the form_alter() checks premium_node_level() and if the node is not yet premium (because the delay is still in effect), then the select default is set to None. Instead, the form_alter() should check premium_node_level_data() to see if an entry for the node exists in premium_nodes.

Comments

maciej lukianski’s picture

Status: Active » Reviewed & tested by the community

I can confirm that currently the default for a content type is pulled in even on nodes with a different setup.

The above patch solves this.

mikl’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

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