Merge branch 'RED-7185-adjustLimit' into 'master'
RED-7185 - RM-46 - Error message when adjusting the Justification Closes RED-7185 See merge request redactmanager/persistence-service!150
This commit is contained in:
commit
b706a71ec1
@ -100,7 +100,7 @@ public class CommentService {
|
||||
|
||||
private void checkComment(String text) {
|
||||
|
||||
if (!StringUtils.isEmpty(text) && text.length() >= COMMENT_MAX_LENGTH) {
|
||||
if (!StringUtils.isEmpty(text) && text.length() > COMMENT_MAX_LENGTH) {
|
||||
throw new BadRequestException(String.format("The comment is too long (%s), max length %s", text.length(), COMMENT_MAX_LENGTH));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user