Commit 0d46ca4a authored by Penny Leach's avatar Penny Leach Committed by Nigel McNie
Browse files

Don't send back json success messages for view changes, it's too clunky

parent 72ec1774
...@@ -292,7 +292,9 @@ function view_process_changes() { ...@@ -292,7 +292,9 @@ function view_process_changes() {
try { try {
$values['returndata'] = defined('JSON'); $values['returndata'] = defined('JSON');
$returndata = $view->$action($values); $returndata = $view->$action($values);
$message = $view->get_viewcontrol_ok_string($action); if (!defined('JSON')) {
$message = $view->get_viewcontrol_ok_string($action);
}
$success = true; $success = true;
} }
catch (Exception $e) { catch (Exception $e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment