summaryrefslogtreecommitdiff
path: root/modules/rest/tests/Rest_Controller_Test.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-27 08:32:12 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-27 08:32:12 -0800
commitbccb6fc02146fb07cd1b472a90092e78e2259e91 (patch)
tree78dcb1717e020ebc65fec8a4ba452ab1193d2a27 /modules/rest/tests/Rest_Controller_Test.php
parent07e83718a0cd1bcef1f0a0546ffcb7cb6a1735ae (diff)
Clean up validation the check for duplicate names or slugs, finish converting the rest API to Kohana 2.4
Diffstat (limited to 'modules/rest/tests/Rest_Controller_Test.php')
-rw-r--r--modules/rest/tests/Rest_Controller_Test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/tests/Rest_Controller_Test.php b/modules/rest/tests/Rest_Controller_Test.php
index b7fbd5a3..6bebc47d 100644
--- a/modules/rest/tests/Rest_Controller_Test.php
+++ b/modules/rest/tests/Rest_Controller_Test.php
@@ -173,7 +173,7 @@ class rest_rest {
static function get($request) {
self::$request = $request;
$item = ORM::factory("item")
- ->where("relative_url_cache", implode("/", $request->arguments))
+ ->where("relative_url_cache", "=", implode("/", $request->arguments))
->find();
$response["path"] = $item->relative_url();
$response["title"] = $item->title;