Hi
I'm using services and rest_server v.7.x-3.7 to update translations on my site.
When creating a node for a translation, I set the tnid, but it is always written in the db as 0.
If I change line 312 of node_resource.inc from:
$stub_node = (object) array_intersect_key($node, array_flip(array('type', 'language')));
to:
$stub_node = (object) array_intersect_key($node, array_flip(array('type', 'language', 'tnid')));
The tnid is properly written to the db and everything works fine.
Is this a known issue? I'm ok just doing this hack but if I've overlooked something simpler I would love to know. I searched but did not find this exact bug.
Thanks.