From 1684ec78b5c21819cef67c99cf08d5ffa29bbaf6 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 18 Aug 2015 21:21:33 +0000 Subject: [PATCH] Use favorite settings from preference to avoid all the encoding problems Avoids errors in Firefox. (See rev. 53183, 53215, 53244) --- phpgwapi/inc/class.egw_favorites.inc.php | 3 +-- phpgwapi/js/jsapi/app_base.js | 25 +++++++++++++----------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/phpgwapi/inc/class.egw_favorites.inc.php b/phpgwapi/inc/class.egw_favorites.inc.php index 0a456b0cda..bbdfc0dd67 100644 --- a/phpgwapi/inc/class.egw_favorites.inc.php +++ b/phpgwapi/inc/class.egw_favorites.inc.php @@ -78,10 +78,9 @@ class egw_favorites error_log(__METHOD__.'Favorite filter "'.$name.'" is not supposed to be empty, it should be an array. Skipping, more investigation needed. filter = '. array2string($filters[$name])); continue; } - $href = "javascript:app.$app.setState(" . json_encode($filter,JSON_FORCE_OBJECT) . ');'; $li = "