Closed (works as designed)
Project:
Tournament Bracket
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2010 at 01:38 UTC
Updated:
26 Aug 2010 at 16:39 UTC
First, Great work on the module! I am trying to build services with your API and, unless I'm wrong, bracket_api_set_competitors is missing "node_save($node);" in it as it never gets updated once called.
Here's my code
$competitors=array(
'Aaron',
'Richard',
'Jeff',
'Dan',
'Molly',
'Max',
'Jim',
'Sax');
$node = node_load(array('nid'=>14));
bracket_api_set_competitors($node, $competitors);
//Since it doesn't contain ndoe_save(..), I then have to run this:
node_save($node);
Shouldn't this function contain node_save?
Comments
Comment #1
jimbullington commentedThis is by design - none of the bracket manipulating functions actually update the bracket node. This was done so that more than one call could be made to the API without saving the node multiple times. The workflow should be:
Hope this helps.
Comment #2
anAgent commentedThanks, that does make sense. I'm closing the non-issue.