-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not edit issue description after creation #4168
Comments
Could you reproduce that behaviour at try.gitea.io, since your version is no longer supported? |
issue can't be reproduced at try.gitea.io. |
@JonasFranzDEV |
@shortmotiv yes |
Can confirm the bug is present on latest stable 1.4.3. However, we figured out that this depends on your permission level. Admins can edit their issue comments while regular users are affected by this bug. |
@exploide in my case all of the users were admin. |
This issue should be tagged as Edit: Or |
Ok, I looked a bit further:
|
Reproducible on https://try.gitea.io (Gitea Version: 179123d) https://try.gitea.io/kaeptmblaubaer1000/cpython/issues/9#
|
It appears that the error occurs when hitting the edit button. In the released v1.5.0 I get a different error:
|
This is NOT a bug in v1.4.2 |
Probable Problem / SolutionDear people who are having issues with this: tree gitea/custom/templates (or I think the culprit (which makes sense for https://try.gitea.io as well) is the use of custom templates. You update a version of gitea and you'd think that all the things you aren't modifying would be fine. Certainly there shouldn't be javascript errors when you've only edited html templates... wrong! The templates are very dirty - they mix and match script tag and full scripts rather than isolating the JavaScript from the template and consolidating it into a single file. Classic front-end development probs. |
I have the "issuesTribute is not defined" error as well, when editing a comment on an issue, on gitea 1.6.0. I haven't customized anything. I don't think I even have a "custom" folder. I also had the same behavior on v1.4.2, though I haven't checked the javascript console output on that version. |
Descriptionsame as @neuoy , and I test it for collaborator with admin, write, and read permission the admin and write permission are fine. the collaborator can delete the comment but cannot edit the text. |
I can confirm this is a bug, when a read permission user create an issue, then edit the issue will reproduce it. |
@shortmotiv @coolaj86 @neuoy @gfwing please confirm #5516 fix your problem. |
Can confirm that it is fixed on current |
[x]
):Description
After an issue has been created, the issue description can not be edited ― regardless of whether there are texts in it or the description is empty. Clicking on the edit icon on the right opens the 'Write' box, and it can be written in. But after editing, neither the 'Save' nor the 'Cancel' button works. The 'Preview' button does not work either.
If page reload is attempted, no warning is displayed about unsaved changes. And if reloaded, the page returns to the 'view issue details' state.
Issue title can be edited, however. And issue can be assigned a label, a milestone, or an assignee. Only the description box does not work.
Screenshots
The text was updated successfully, but these errors were encountered: