This commit is contained in:
Lunny Xiao 2024-04-25 14:14:52 +08:00
parent c041e36715
commit 42bfa04a04
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 1 additions and 2 deletions

View File

@ -158,7 +158,7 @@ func NewBoard(ctx context.Context, board *Board) error {
var maxSorting int8
if _, err := db.GetEngine(ctx).Select("Max(sorting)").Table("project_board").
Where("project_id=?", board.ProjectID).Get(&maxSorting); err != nil {
Where("project_id=?", board.ProjectID).Get(&maxSorting); err != nil {
return err
}
if maxSorting > 0 {

View File

@ -1351,7 +1351,6 @@ func registerRoutes(m *web.Route) {
m.Get("", repo.Projects)
m.Get("/{id}", repo.ViewProject)
m.Group("", func() { //nolint:dupl
m.Get("/new", repo.RenderNewProject)
m.Post("/new", web.Bind(forms.CreateProjectForm{}), repo.NewProjectPost)
m.Group("/{id}", func() {