Setting 'Close Periods always consecutively' was sometimes applied incorrectly

With the administration setting 'Close Periods always consecutively' = false, in some cases all consecutive periods were incorrectly closed when closing periods.

 

Administration Settings
Time Registration » General » Process Hours