Commit: 252c801f4e32304501c3e60591a77429f17e7853
Author: Jon Adams | Date: 2010-03-31 10:46:54 -0700
diff --git a/controllers/CollectionsController.php b/controllers/CollectionsController.php
index b0ea958..834ac16 100644
--- a/controllers/CollectionsController.php
+++ b/controllers/CollectionsController.php
@@ -34,7 +34,7 @@ class CollectionsController extends \lithium\action\Controller {
}
public function view() {
- $data = Collection::all(array('source' => $this->request->id));
+ $data = Collection::all(array('source' => $this->request->params['id']));
return compact('data');
}
@@ -43,7 +43,7 @@ class CollectionsController extends \lithium\action\Controller {
$_id = array_shift($path);
$item = $document = Collection::first(array(
- 'source' => $this->request->id,
+ 'source' => $this->request->params['id'],
'conditions' => compact('_id')
));