wger
wger copied to clipboard
Adding the same exercise twice to a workout does not work correctly logging session
Steps to Reproduce
-
Add the same exercise with different parameters
-
Try to log a sessión
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.