Closed (fixed)
Project:
Services
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2010 at 17:39 UTC
Updated:
4 Mar 2010 at 16:30 UTC
If I do a node get I get the following section for a node (that I have put the related node into)
[field_company] => Array
(
[0] => Array
(
[nid] => 2
)
)
And when I do a node get on that node it returns
'field_company': [{'nid': '2'}],
so far so good, but when I then put that same value into a node save
like so
self.field_company = [{'nid':2}]
And do a save on the object, the field_company is then empty.
'field_company': [{'nid': ''}],
All my other CCK values work ok, is this an issue with the services module or nodereference module?
I have tried to search for a explanation but so far only drawn a blank.
Comments
Comment #1
Maitreya commentedI had a problem like this when i had the reference formfield set to autocomplete.
When set to list it did accept value's.
Comment #2
Race.it commentedCheers that worked :)