@@ -944,7 +944,7 @@ func GetIssueDependencies(ctx *context.APIContext) {
944
944
return
945
945
}
946
946
947
- issue , err := models .GetIssueWithAttrsByIndex (ctx .Repo .Repository .ID , ctx .ParamsInt64 (":index" ))
947
+ issue , err := models .GetIssueByIndex (ctx .Repo .Repository .ID , ctx .ParamsInt64 (":index" ))
948
948
if err != nil {
949
949
if models .IsErrIssueNotExist (err ) {
950
950
ctx .NotFound ("IsErrIssueNotExist" , err )
@@ -1094,7 +1094,7 @@ func GetIssueBlocks(ctx *context.APIContext) {
1094
1094
return
1095
1095
}
1096
1096
1097
- issue , err := models .GetIssueWithAttrsByIndex (ctx .Repo .Repository .ID , ctx .ParamsInt64 (":index" ))
1097
+ issue , err := models .GetIssueByIndex (ctx .Repo .Repository .ID , ctx .ParamsInt64 (":index" ))
1098
1098
if err != nil {
1099
1099
if models .IsErrIssueNotExist (err ) {
1100
1100
ctx .NotFound ("IsErrIssueNotExist" , err )
@@ -1231,7 +1231,7 @@ func createIssueDependency(ctx *context.APIContext, t models.DependencyType) {
1231
1231
return
1232
1232
}
1233
1233
1234
- issue , err := models .GetIssueWithAttrsByIndex (repo .ID , form .Index )
1234
+ issue , err := models .GetIssueByIndex (repo .ID , form .Index )
1235
1235
if err != nil {
1236
1236
if models .IsErrIssueNotExist (err ) {
1237
1237
ctx .NotFound ("IsErrIssueNotExist" , err )
@@ -1260,7 +1260,7 @@ func removeIssueDependency(ctx *context.APIContext, t models.DependencyType) {
1260
1260
return
1261
1261
}
1262
1262
1263
- issue , err := models .GetIssueWithAttrsByIndex (ctx .Repo .Repository .ID , ctx .ParamsInt64 (":index" ))
1263
+ issue , err := models .GetIssueByIndex (ctx .Repo .Repository .ID , ctx .ParamsInt64 (":index" ))
1264
1264
if err != nil {
1265
1265
if models .IsErrIssueNotExist (err ) {
1266
1266
ctx .NotFound ("IsErrIssueNotExist" , err )
0 commit comments