mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Whitespace
This commit is contained in:
parent
f1480c20bf
commit
ec47cc1286
@ -518,11 +518,11 @@ class RestfulServer extends Controller {
|
||||
* @return SQLQuery|boolean
|
||||
*/
|
||||
protected function getObjectRelationQuery($obj, $params, $sort, $limit, $relationName) {
|
||||
// The relation method will return a DataList, that getSearchQuery subsequently manipulates
|
||||
// The relation method will return a DataList, that getSearchQuery subsequently manipulates
|
||||
if($obj->hasMethod($relationName)) {
|
||||
$query = $obj->$relationName();
|
||||
return $this->getSearchQuery($query->dataClass(), $params, $sort, $limit, $query);
|
||||
}
|
||||
$query = $obj->$relationName();
|
||||
return $this->getSearchQuery($query->dataClass(), $params, $sort, $limit, $query);
|
||||
}
|
||||
}
|
||||
|
||||
protected function permissionFailure() {
|
||||
|
Loading…
Reference in New Issue
Block a user