File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -870,7 +870,7 @@ function initIssue() {
870
870
871
871
$ . post ( $m . data ( "ajax" ) , {
872
872
issue : $ ( '#issue' ) . data ( "id" ) ,
873
- milestone : id
873
+ milestoneid : id
874
874
} , function ( json ) {
875
875
if ( json . ok ) {
876
876
//window.location.reload();
Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ func UpdateIssueMilestone(ctx *middleware.Context) {
582
582
}
583
583
584
584
oldMid := issue .MilestoneId
585
- mid := com .StrTo (ctx .Params ( ":milestone " )).MustInt64 ()
585
+ mid := com .StrTo (ctx .Query ( "milestoneid " )).MustInt64 ()
586
586
if oldMid == mid {
587
587
ctx .JSON (200 , map [string ]interface {}{
588
588
"ok" : true ,
@@ -627,7 +627,7 @@ func UpdateAssignee(ctx *middleware.Context) {
627
627
return
628
628
}
629
629
630
- aid := com .StrTo (ctx .Params ( ": assigneeid" )).MustInt64 ()
630
+ aid := com .StrTo (ctx .Query ( " assigneeid" )).MustInt64 ()
631
631
// Not check for invalid assignne id and give responsibility to owners.
632
632
issue .AssigneeId = aid
633
633
if err = models .UpdateIssueUserPairByAssignee (aid , issue .Id ); err != nil {
You can’t perform that action at this time.
0 commit comments