Services REST node create - tnid not set

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
swafran's picture

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.

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week