In _services_process_resource(), is the following loop
// Actions and relationships.
foreach (array('relationships', 'actions', 'targeted_actions') as $class) {
if (!isset($resource[$class])) {
continue;
}
foreach (array_keys($resource[$class]) as $action_name) {
$class_singular = trim($class, 's');
$controllers[$name . '/' . $class_singular . '/' . $action_name] = &$resource['relationships'][$action_name];
}
}
This causes all sorts of chaos because it hard codes a check for relationships, even when processing actions and targeted actions. Attached patch fixes this.
Comments
Comment #1
gddCorrection: attached patch fixes this.
Comment #2
gddIt appears that this also resolves the problem in #1268802: Some resource methods listed twice
Comment #3
kylebrowning commentedTHis looks good and verified it fixes the issue.
Comment #4
kylebrowning commented