Infos:
- Used Zammad version: 5.1.0-1647672154.2d614923.focal
- Used Zammad installation type: package
- Operating system: Ubuntu 20.04.4 LTS
- Browser + version: Google Chrome Version 99.0.4844.82 (Official Build) (64-bit)
Expected behavior:
- Out of office replacement overview only being shown for replacement users, when set to only be available for replacement users
Actual behavior:
- Out of office replacement overview always shown for all agents
Steps to reproduce the behavior:
- Create an overview with the following settings (should already be included in the default installation)
- (Possibly create new agent and switch to it, see note below)
- Be sure to not be assigned as an out of office replacement by a different agent
- Check to see if the overview is being shown in the overviews tab
I have this behaviour happen on both our production instance and my local test install, both running the same version of Zammad with some slight modifications, which should not affect this functionality in any way. Curious to know if anyone else has this issue. Thanks
I have checked in the rails console to see if there were any replacement assignments with this command:
User.where.not(out_of_office_replacement_id: nil)
, which returned
=> #<ActiveRecord::Relation []>
As a test I assigned a different agent as a replacement and the above command did return the expected data:
=> #<ActiveRecord::Relation [#<User id: 3, <snip>, out_of_office_replacement_id: 4, <snip>>]>
Note: After doing the above, for some reason the overview started hiding as expected for that particular agent afterwards when I disabled the replacement again, which does confuse me. Creating a new agent user however brought back the bug for it.
User.where(out_of_office: true)
seems to be another good way to see if any agent is set to out of office.