Skip to content

Incorrect nested webUI when submitting an empty inline review within a PR #18151

Closed
@eeyrjmr

Description

@eeyrjmr

Gitea Version

1.15.8/1.16

Can you reproduce the bug on the Gitea demo site?

Yes

Description

When you start a review associated with a PR, if you select a line-number and "start review" the vast majority of the Gitea WebUI is reproduced causing layout issues. The key point is "submitting an empty comment" (or trigger some other errors).

https://try.gitea.io/eeyrjmr/test_issues/pulls/2/files

Steps to reproduce

  1. Start a PR
  2. view PR
  3. View PR files
  4. click blue + on one of the lines
  5. keep content empty, click green start review UI button
  6. error message: "Content cannot be empty."

2022-01-01_18-01-1641060192

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions