fixed sending of arbitrary JSON data egw_json_request::isJSONRequest(false)

This commit is contained in:
Ralf Becker 2014-02-24 18:46:14 +00:00
parent de828994f2
commit e96ec115a0
2 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,9 @@ class etemplate_widget_taglist extends etemplate_widget
{
$results[] = array('id' => $id, 'label' => $name);
}
// switch regular JSON response handling off
egw_json_request::isJSONRequest(false);
header('Content-Type: application/json; charset=utf-8');
echo json_encode($results);
common::egw_exit();

View File

@ -3021,6 +3021,8 @@ class mail_compose
if($list_count++ > 5) break;
}
}
// switch regular JSON response handling off
egw_json_request::isJSONRequest(false);
//error_log(__METHOD__.__LINE__.array2string($jsArray));
header('Content-Type: application/json; charset=utf-8');