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

Adding the same exercise twice to a workout does not work correctly logging session #1549

Open
adrianlzt opened this issue Jan 16, 2024 · 0 comments

Comments

@adrianlzt
Copy link

Steps to Reproduce

  1. Add the same exercise with different parameters
    image

  2. Try to log a sessión
    image

Expected results:
First exercise should only have two sets.

Also, the name of the exercise is missing. I think the fix for that one is easy:

diff --git a/wger/manager/templates/log/add.html b/wger/manager/templates/log/add.html
index 425d6a3e..32dc8d4d 100644
--- a/wger/manager/templates/log/add.html
+++ b/wger/manager/templates/log/add.html
@@ -45,7 +45,7 @@ $(document).ready(function () {
             {% with value=bases|get_item:base.id %}
                 <div class="row">
                     <label class="col-md-12 font-weight-bold">
-                        {{value.obj.get_exercise.name}}
+                        {{value.obj}}
                     </label>
                 </div>
                 <div class="row">

Actual results:
The form is showing 4 sets for both exercises, but first one has only two sets.

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

No branches or pull requests

1 participant