Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure that minute_increment is not zero #2860

Merged
merged 1 commit into from Oct 16, 2021
Merged

Conversation

kevinpapst
Copy link
Member

Description

This could cause a Javascript bug in forms that use the DateTimePickerType and the system setting Minute selection for From & To with the value Use configured value of the rounding rule and then the rounding rule being zero.

The form/browser tab would simply freeze, due to another bug in the underlying javascript date-time-picker.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I verified that my code applies to the guidelines (composer code-check)
  • I agree that this code is used in Kimai and will be published under the MIT license

@kevinpapst kevinpapst added the bug label Oct 16, 2021
@kevinpapst kevinpapst added this to the 1.15.6 milestone Oct 16, 2021
@codecov
Copy link

codecov bot commented Oct 16, 2021

Codecov Report

Merging #2860 (bb03af2) into master (8539938) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master    #2860   +/-   ##
=========================================
  Coverage     92.52%   92.53%           
- Complexity     7593     7596    +3     
=========================================
  Files           674      674           
  Lines         23385    23389    +4     
=========================================
+ Hits          21638    21642    +4     
  Misses         1747     1747           
Impacted Files Coverage Δ
src/Controller/SystemConfigurationController.php 97.85% <100.00%> (ø)
src/Form/Type/DateTimePickerType.php 100.00% <100.00%> (ø)
src/Form/Type/MinuteIncrementType.php 100.00% <100.00%> (ø)

@kevinpapst kevinpapst merged commit fb265ed into master Oct 16, 2021
@kevinpapst kevinpapst deleted the fix-datetimepicker branch October 16, 2021 11:38
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

1 participant