diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-05-15 16:00:46 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-05-15 16:00:46 -0700 |
commit | 891652b233df120464d8fe7d3ca80c5091681dea (patch) | |
tree | aa23444f902417b9e5bad8a768144da691af2313 /modules/tag | |
parent | 82be903527a679f296be58916b6c68a5c410d010 (diff) |
Send back form errors wrapped in JSON. Fixes #1867.
Diffstat (limited to 'modules/tag')
-rw-r--r-- | modules/tag/controllers/admin_tags.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php index ff69ad94..515b6891 100644 --- a/modules/tag/controllers/admin_tags.php +++ b/modules/tag/controllers/admin_tags.php @@ -58,7 +58,7 @@ class Admin_Tags_Controller extends Admin_Controller { json::reply(array("result" => "success", "location" => url::site("admin/tags"))); } else { - print $form; + json::reply(array("result" => "error", "html" => (string)$form)); } } |