wger icon indicating copy to clipboard operation
wger copied to clipboard

Adding a new exercise with a description longer than 2k fails silently

Open adrianlzt opened this issue 1 year ago • 3 comments

Steps to Reproduce

  1. Create an exercise with more than 2k chars image

  2. Click on Submit exercise

Expected results: The UI should limit the number of chars. Also, if that limit is excedeed, the UI should return the error and allow the user to correct and re-submit.

Actual results: The exercise is not created (actually, the base exercise is created, but not the translation).

Error seen in the request to create the translation:

description: ["Ensure this field has no more than 2000 characters."]

adrianlzt avatar Jan 16 '24 09:01 adrianlzt

Could I work on this?

joaogdfaero avatar Jan 30 '24 11:01 joaogdfaero

Sure @joaogdfaero go ahead!

rolandgeider avatar Jan 31 '24 17:01 rolandgeider

(to make it clear, the upper limit should be 2000 characters)

rolandgeider avatar Jan 31 '24 17:01 rolandgeider