Skip to content

Conversation

TomerPacific
Copy link
Contributor

@TomerPacific TomerPacific commented Oct 6, 2021

Proposed Changes

When a user chooses a start/end time at the end of the gym mode, the time will always be the same when trying to edit. This happened because of two reasons:

  1. The initial values for the TimePicker were wrong
  2. We were not setting the chosen value until the Save button was pressed

The fix adds a default time to session's timeStart/end and also corrects the behavior of setting these fields appropriately.

Related Issues (if applicable)
Fixes #31

Please check that the PR fulfills these requirements

  • Set a 100 character limit in your editor/IDE to avoid white space diffs in the PR
  • Tests for the changes have been added (for bug fixes / features)
  • Added yourself to AUTHORS.rst

@rolandgeider
Copy link
Member

Looks good, thanks!

@rolandgeider rolandgeider merged commit a1791b3 into wger-project:master Oct 7, 2021
@TomerPacific TomerPacific deleted the fix/preset-time-session-form-31 branch October 7, 2021 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preselect correct time in session form
2 participants