diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-05-15 23:36:52 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-05-15 23:36:52 -0700 |
commit | 29a8ba959ec1ec1ebd14d12c2a102fd7d3fcd012 (patch) | |
tree | d1f75ca29e54e1df32d1d5589ec27b676ca092b4 /modules/comment/controllers/comments.php | |
parent | 28aee011307e37cd80e9bef0f08cb9b0270d89b5 (diff) | |
parent | 1240878df0f4a2b0ad0cdb32814717038ff2773f (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/comment/controllers/comments.php')
-rw-r--r-- | modules/comment/controllers/comments.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index 9e0f86d2..465b1bcd 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -58,6 +58,7 @@ class Comments_Controller extends Controller { "view" => (string) $view, "form" => (string) comment::get_add_form($item))); } else { + $form = comment::prefill_add_form($form); print json_encode(array("result" => "error", "form" => (string) $form)); } } @@ -69,6 +70,6 @@ class Comments_Controller extends Controller { $item = ORM::factory("item", $item_id); access::required("view", $item); - print comment::get_add_form($item); + print comment::prefill_add_form(comment::get_add_form($item)); } } |