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

fix: wrong parsing of recipe yield input #1944

Merged
merged 4 commits into from
Dec 7, 2023
Merged

fix: wrong parsing of recipe yield input #1944

merged 4 commits into from
Dec 7, 2023

Conversation

j0hannesr0th
Copy link
Contributor

@j0hannesr0th j0hannesr0th commented Dec 6, 2023

Topic and Scope

Fixes #1937

Aufzeichnung.2023-12-06.192544.mp4

Concerns/issues

none.

Formal requirements

There are some formal requirements that should be satisfied. Please mark those by checking the corresponding box.

  • I did check that the app can still be opened and does not throw any browser logs
  • I created tests for newly added PHP code (check this if no PHP changes were made)
  • I updated the OpenAPI specs and added an entry to the API changelog (check if API was not modified)
  • I notified the matrix channel if I introduced an API change

Copy link

github-actions bot commented Dec 6, 2023

Test Results

     27 files  1 287 suites   5m 23s ⏱️
   552 tests    552 ✔️ 0 💤 0
4 968 runs  4 967 ✔️ 1 💤 0

Results for commit 5c52fd1.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@christianlupus christianlupus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not simpler, to solve the root of the problem? In line 83 the model is synced with the content of an input field. This causes the trouble of different data types. Normally, it is integer, but it is set to string internally after changes.

If you just added .number.trim (to v-model), the value is converted to a number before storing.

Signed-off-by: Johannes Roth <git@jrcloud.de>
Signed-off-by: Johannes Roth <git@jrcloud.de>
Signed-off-by: Johannes Roth <git@jrcloud.de>
@j0hannesr0th
Copy link
Contributor Author

I've updated the code and removed the browser native increase and decrease buttons.

@j0hannesr0th j0hannesr0th marked this pull request as draft December 7, 2023 12:31
@j0hannesr0th j0hannesr0th marked this pull request as ready for review December 7, 2023 13:19
Signed-off-by: Christian Wolf <github@christianwolf.email>
@christianlupus
Copy link
Collaborator

/cb-backport main-0.10.x

@christianlupus christianlupus merged commit cc1d6d7 into nextcloud:master Dec 7, 2023
23 checks passed
christianlupus pushed a commit that referenced this pull request Dec 10, 2023
fix: wrong parsing of recipe yield input

Signed-off-by: Johannes Roth <git@jrcloud.de>

fix: wrong parsing of recipe yield input

Signed-off-by: Johannes Roth <git@jrcloud.de>

Make stylelint and prettier happy

Signed-off-by: Christian Wolf <github@christianwolf.email>
christianlupus added a commit that referenced this pull request Dec 10, 2023
…e-yields

Backport of #1944: fix entry recipe yields
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.

Changing number of servings not working after manual entry
2 participants