|
|
@@ -311,13 +311,8 @@ func (issue *Issue) clearLabels(e *xorm.Session) (err error) {
|
|
|
return fmt.Errorf("getLabels: %v", err)
|
|
|
}
|
|
|
|
|
|
- // NOTE: issue.removeLabel slices issue.Labels, so we need to create another slice to be unaffected.
|
|
|
- labels := make([]*Label, len(issue.Labels))
|
|
|
for i := range issue.Labels {
|
|
|
- labels[i] = issue.Labels[i]
|
|
|
- }
|
|
|
- for i := range labels {
|
|
|
- if err = issue.removeLabel(e, labels[i]); err != nil {
|
|
|
+ if err = issue.removeLabel(e, issue.Labels[i]); err != nil {
|
|
|
return fmt.Errorf("removeLabel: %v", err)
|
|
|
}
|
|
|
}
|
|
|
@@ -1015,13 +1010,6 @@ func GetParticipantsByIssueID(issueID int64) ([]*User, error) {
|
|
|
return users, x.In("id", userIDs).Find(&users)
|
|
|
}
|
|
|
|
|
|
-// .___ ____ ___
|
|
|
-// | | ______ ________ __ ____ | | \______ ___________
|
|
|
-// | |/ ___// ___/ | \_/ __ \| | / ___// __ \_ __ \
|
|
|
-// | |\___ \ \___ \| | /\ ___/| | /\___ \\ ___/| | \/
|
|
|
-// |___/____ >____ >____/ \___ >______//____ >\___ >__|
|
|
|
-// \/ \/ \/ \/ \/
|
|
|
-
|
|
|
// IssueUser represents an issue-user relation.
|
|
|
type IssueUser struct {
|
|
|
ID int64
|