mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix JS error, if user has no preferences or favorites
This commit is contained in:
parent
e1af1f3765
commit
509fbd73e9
@ -103,7 +103,7 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
|
|||||||
public static readonly PREFIX = "favorite_";
|
public static readonly PREFIX = "favorite_";
|
||||||
protected static readonly ADD_VALUE = "~add~";
|
protected static readonly ADD_VALUE = "~add~";
|
||||||
|
|
||||||
private favSortedList : any = null;
|
private favSortedList : any = [];
|
||||||
private _preferred : string;
|
private _preferred : string;
|
||||||
private _nextmatch : et2_nextmatch;
|
private _nextmatch : et2_nextmatch;
|
||||||
|
|
||||||
@ -203,6 +203,7 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Load saved favorites
|
// Load saved favorites
|
||||||
|
this.favSortedList = [];
|
||||||
let preferences : any = this.egw().preference("*", app);
|
let preferences : any = this.egw().preference("*", app);
|
||||||
for(let pref_name in preferences)
|
for(let pref_name in preferences)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user