diff --git a/src/main/scala/gitbucket/core/controller/AccountController.scala b/src/main/scala/gitbucket/core/controller/AccountController.scala index 84686e5..7663ba9 100644 --- a/src/main/scala/gitbucket/core/controller/AccountController.scala +++ b/src/main/scala/gitbucket/core/controller/AccountController.scala @@ -713,7 +713,7 @@ } helper.html.forkrepository( repository, - (groups zip managerPermissions).toMap + (groups zip managerPermissions).sortBy(_._1) ) case _ => redirect(s"/${loginUserName}") } diff --git a/src/main/twirl/gitbucket/core/helper/forkrepository.scala.html b/src/main/twirl/gitbucket/core/helper/forkrepository.scala.html index 4dfed1d..e7de31a 100644 --- a/src/main/twirl/gitbucket/core/helper/forkrepository.scala.html +++ b/src/main/twirl/gitbucket/core/helper/forkrepository.scala.html @@ -1,18 +1,23 @@ @(repository: gitbucket.core.service.RepositoryService.RepositoryInfo, - groupAndPerm: Map[String, Boolean])(implicit context: gitbucket.core.controller.Context) + groupAndPerm: Seq[(String, Boolean)])(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers