If I try to use the files relationship of a node I get a php notice in my log:
Warning: Missing argument 3 for _file_resource_retrieve(), called in /drupal7/sites/all/modules/services/resources/node_resource.inc on line 458 and defined in _file_resource_retrieve() (line 230 of /drupal7/sites/all/modules/services/resources/file_resource.inc).

Attached patch fixed this for me.

Comments

kylebrowning’s picture

Status: Needs review » Needs work

The patch technically solves the problem, but I think heres a larger bug that won't pass the default value false off to this function.

REST server handles filling in the default values and I think the issue might be that it doesn't like false as a default value.

marcingy’s picture

The issue is that _node_resource_load_node_files does not accept the new additional parameter, and pass it onwards.

marcingy’s picture

Status: Needs work » Needs review
StatusFileSize
new1.77 KB

This should fix the issue.

wedge’s picture

Thanks Marc, that works for me also.

kylebrowning’s picture

Status: Needs review » Reviewed & tested by the community

looks good.

marcingy’s picture

Status: Reviewed & tested by the community » Fixed
kylebrowning’s picture

Status: Fixed » Closed (fixed)