File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,14 @@ func NewRelease(ctx *context.Context) {
328
328
}
329
329
}
330
330
ctx .Data ["IsAttachmentEnabled" ] = setting .Attachment .Enabled
331
+ var err error
332
+ // Get assignees.
333
+ ctx .Data ["Assignees" ], err = repo_model .GetRepoAssignees (ctx , ctx .Repo .Repository )
334
+ if err != nil {
335
+ ctx .ServerError ("GetAssignees" , err )
336
+ return
337
+ }
338
+
331
339
upload .AddUploadContext (ctx , "release" )
332
340
ctx .HTML (http .StatusOK , tplReleaseNew )
333
341
}
@@ -484,6 +492,13 @@ func EditRelease(ctx *context.Context) {
484
492
}
485
493
ctx .Data ["attachments" ] = rel .Attachments
486
494
495
+ // Get assignees.
496
+ ctx .Data ["Assignees" ], err = repo_model .GetRepoAssignees (ctx , rel .Repo )
497
+ if err != nil {
498
+ ctx .ServerError ("GetAssignees" , err )
499
+ return
500
+ }
501
+
487
502
ctx .HTML (http .StatusOK , tplReleaseNew )
488
503
}
489
504
You can’t perform that action at this time.
0 commit comments