wger icon indicating copy to clipboard operation
wger copied to clipboard

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

Open adrianlzt opened this issue 1 year ago • 0 comments

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.

adrianlzt avatar Jan 16 '24 08:01 adrianlzt