@@ -779,7 +779,7 @@ func (issue *Issue) ChangeAssignee(doer *User, assigneeID int64) (err error) {
779
779
type NewIssueOptions struct {
780
780
Repo * Repository
781
781
Issue * Issue
782
- LableIDs []int64
782
+ LabelIDs []int64
783
783
Attachments []string // In UUID format.
784
784
IsPull bool
785
785
}
@@ -851,12 +851,12 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
851
851
return err
852
852
}
853
853
854
- if len (opts .LableIDs ) > 0 {
854
+ if len (opts .LabelIDs ) > 0 {
855
855
// During the session, SQLite3 driver cannot handle retrieve objects after update something.
856
856
// So we have to get all needed labels first.
857
- labels := make ([]* Label , 0 , len (opts .LableIDs ))
858
- if err = e .In ("id" , opts .LableIDs ).Find (& labels ); err != nil {
859
- return fmt .Errorf ("find all labels [label_ids: %v]: %v" , opts .LableIDs , err )
857
+ labels := make ([]* Label , 0 , len (opts .LabelIDs ))
858
+ if err = e .In ("id" , opts .LabelIDs ).Find (& labels ); err != nil {
859
+ return fmt .Errorf ("find all labels [label_ids: %v]: %v" , opts .LabelIDs , err )
860
860
}
861
861
862
862
if err = opts .Issue .loadPoster (e ); err != nil {
@@ -909,7 +909,7 @@ func NewIssue(repo *Repository, issue *Issue, labelIDs []int64, uuids []string)
909
909
if err = newIssue (sess , issue .Poster , NewIssueOptions {
910
910
Repo : repo ,
911
911
Issue : issue ,
912
- LableIDs : labelIDs ,
912
+ LabelIDs : labelIDs ,
913
913
Attachments : uuids ,
914
914
}); err != nil {
915
915
return fmt .Errorf ("newIssue: %v" , err )
0 commit comments