Starts in:
1 DAY
1 HR
40 MIN
15 SEC
Starts in:
1 D
1 H
40 M
15 S
Open Closed

User setting change does not affect filter value #6695


User avatar
0
peter.arrivex created
  • ABP Framework version: v7.4.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no

I have written the Global Query Filter for filtering the entities by the WorkingYear saved in the userSettings. It is working fine at first place but when I update the WorkingYear from UserSettings then this filter is not updating accordingly. It still filter the record by earlier value of WorkingYear. Please help me out to update the Global Query Filter. Thanks.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    int season = Convert.ToInt32(_settingProvider GetOrNullAsync("ATS.WorkingYear").Result);

    Please make season like a IsWorkingYearFilterEnabled variable instead of a local variable.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06