Skip to content

Conversation

HarshitOnGitHub
Copy link
Contributor

No description provided.

@bkcsoft bkcsoft added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Dec 31, 2018
@lafriks lafriks added this to the 1.6.3 milestone Dec 31, 2018
@lafriks lafriks changed the title backport: PR #5608. Fix wrong text getting saved on editing second comment on an issue (#5608) Dec 31, 2018
@techknowlogick
Copy link
Member

Is the change to /public/js/index.js from #5608 not needed in the backport?

…o-gitea#5608)

* comments: Fix an incorrent DOM element selection.

This commit fixes a bug that was causing text from previously edited
comment to get saved when two comments were edited one after other.
Text area with id of `#content` isn't unique on the page but it was
being treated as unique by the event handling code.

Fixes: go-gitea#5581.

* templates: Remove `id` from textarea in commit edit form.

An element is assigned an `id` only if it is unique for the whole page
but in this case there can be multiple textarea so it should have one.
@HarshitOnGitHub
Copy link
Contributor Author

@techknowlogick Oops! By mistake I forgot to include that commit. 🤦‍♂️

@techknowlogick
Copy link
Member

That’s ok. Those things happen. This is why we have reviews to catch things like that, so everything is ok :) thanks for your contribution, it is appreciated.

@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 31, 2018
@techknowlogick techknowlogick merged commit 28cc3bd into go-gitea:release/v1.6 Dec 31, 2018
@lafriks
Copy link
Member

lafriks commented Dec 31, 2018

Looks like I shouldn't be reviewing in New year's eve, missed that :)

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants