Skip to content

Editing a comment is not possible when its length is higher than 1000 #14012

@Stef-Rousset

Description

@Stef-Rousset

Describe the bug

Ad an admin, when I set the max length of a proposal's comment to 1500, and then I post a comment which length is superior to the default value (1000 chars) but inferior to the max value, it is then not possible to edit this comment.

To Reproduce

  1. Log in as admin and access Back-Office
  2. Go to a participatory process, and access to the proposal component of it
  3. Modify the component to fix a limit of characters for comments superior to 1000 chars (= default value)
  4. Access Front-Office of this component
  5. Access a proposal and submit a comment over 1000 chars but below your limit
  6. Try to edit it and stay over the 1000 chars limit
  7. See that you have an error message

Expected behavior

When I set a max length for a proposal's comment superior to 1000, and I post a comment with a length superior to 1000, I expect to be able to edit it.

Screenshots

Image

Stacktrace

No response

Extra data

  • Device:
  • Device OS:
  • Browser:
  • Decidim Version:
  • Decidim installation:

Additional context

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions