From 3f3071241f1e692857c26fc1ed211b8f7bc2f308 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 10 Jul 2015 17:44:21 +0000 Subject: [PATCH] Fix copy-paste error in favorite selection comparison, giving TypeError. --- phpgwapi/js/jsapi/app_base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index 1af541941e..40d53785a9 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -806,7 +806,7 @@ var AppJS = Class.extend( typeof state[state_key][sub_key] === 'object' && typeof favorite.state[state_key][sub_key] === 'object') { // Too deep to keep going, just string compare for perfect match - if(state[state_key][sub_key].toJSON() === favorite.state[state_key][sub_key]) + if(JSON.stringify(state[state_key][sub_key]) === JSON.stringify(favorite.state[state_key][sub_key])) { match_count++; }