using JSON.stringfy() directly gave a crash in Safari 7.0.4

This commit is contained in:
Ralf Becker 2014-08-21 18:28:28 +00:00
parent 66e5004591
commit 843b12b357

View File

@ -300,7 +300,8 @@ app.classes.mail = AppJS.extend(
)
{
// Make sure keys match, even if some filters are not defined
return JSON.stringify({
// using JSON.stringfy() directly gave a crash in Safari 7.0.4
return this.egw.jsonEncode({
selectedFolder: query_context.self._filters.selectedFolder || '',
filter: query_context.self._filters.filter || '',
filter2: query_context.self._filters.filter2 || '',