Needs review
Project:
Signup
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2011 at 15:23 UTC
Updated:
8 Jun 2011 at 15:23 UTC
Motivation:
Over at #1115824: Switch from Flag to Signup for personal session schedule, we're trying to programmatically disable signup on new nodes of the 'session' content type, but the site-wide defaults override any values set in the new node object.
This patch keeps the defaults in place but lets them be overridden if they are already set in the node.
I tested this with the following programmatic example:
$node->type = 'event';
$node->title = 'Test Overriding signup values';
$node->signup_enabled = TRUE;
$node->signup_confirmation_email = 'Overridden confirmation email.';
node_save($node);
| Comment | File | Size | Author |
|---|---|---|---|
| signup-override-values.patch | 1.73 KB | ezra-g |
Comments
Comment #1
ezra-g commented