mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Fix copy-paste error in favorite selection comparison, giving TypeError.
This commit is contained in:
parent
cd778e3c36
commit
3f3071241f
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user