Closed (fixed)
Project:
Premium content
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 01:54 UTC
Updated:
23 Mar 2012 at 17:00 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| premium_module_node_edit_option_default.patch | 901 bytes | jonathan_hunt |
Comments
Comment #1
maciej lukianski commentedI 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.
Comment #2
miklThanks, committed.