Browse Source

Sending all options to finder method from Paginator

Patrick Conroy 11 years ago
parent
commit
a614451aed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Controller/Component/PaginatorComponent.php

+ 1 - 1
src/Controller/Component/PaginatorComponent.php

@@ -164,7 +164,7 @@ class PaginatorComponent extends Component {
 		unset($options['finder'], $options['maxLimit']);
 
 		if (empty($query)) {
-			$query = $object->find($type, isset($options['finderOptions']) ? $options['finderOptions'] : []);
+			$query = $object->find($type, $options);
 		}
 
 		$query->applyOptions($options);