Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.71
Broken: version: 2.80 (sub 74), branch: blender2.7, commit date: 2019-06-09 21:43, hash: rB030c7df19da9
Short description of error
If you click the checkbox to the left of a collection to disable/exclude it, then you click the checkbox to re-enable it, all of the hidden objects in the collection will become unhidden. This shouldn't be the case. If you disable a collection, when you re-enable it, it should be added in with the same object visibility as it had when it was disabled.
Exact steps for others to reproduce the error
Start a new scene. Duplicate the default cube 3 times. Put all three cubes into a new collection.
Set the visibility of one of the cubes to hidden by turning off the eyeball icon in the outliner.
Click the checkbox next to the collection to disable/exclude it.
Click the checkbox next to the collection to include it. The hidden object will no longer be hidden.