Abrir Fechadas

User setting change does not affect filter value #6695


User avatar
0
peter.arrivex criada
  • 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 resposta (s)
  • User Avatar
    0
    maliming criada
    Equipe de Apoio 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 v8.2.0-preview Updated on março 25, 2024, 15:11