Api: Fix favorites that change columns lost their values

Setting columns often causes a reload, which skips the applyFilters().
This commit is contained in:
nathan 2024-03-05 14:25:49 -07:00
parent d1bfe30c79
commit 8a8afaae49

View File

@ -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;