mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Api: Fix favorites that change columns lost their values
Setting columns often causes a reload, which skips the applyFilters().
This commit is contained in:
parent
d1bfe30c79
commit
8a8afaae49
@ -569,12 +569,12 @@ export abstract class EgwApp
|
||||
// Not using resetSort() to avoid the extra applyFilters() call
|
||||
_widget.sortBy(undefined, undefined, false);
|
||||
}
|
||||
_widget.applyFilters(state.state || state.filter || {});
|
||||
if(state.state && state.state.selectcols)
|
||||
{
|
||||
// Make sure it's a real array, not an object, then set cols
|
||||
_widget.set_columns(jQuery.extend([], state.state.selectcols));
|
||||
}
|
||||
_widget.applyFilters(state.state || state.filter || {});
|
||||
nextmatched = true;
|
||||
}, this, et2_nextmatch);
|
||||
if(nextmatched) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user