mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-21 06:39:48 +02:00
fix: remove required binding from NewParent field of MoveGroupOption struct to allow moving to a group id of 0 (i.e., the root level)
This commit is contained in:
parent
92ff4a62f2
commit
038cad9754
@ -36,7 +36,7 @@ type MoveGroupOption struct {
|
|||||||
// the new parent group. can be 0 to specify no parent
|
// the new parent group. can be 0 to specify no parent
|
||||||
//
|
//
|
||||||
// required: true
|
// required: true
|
||||||
NewParent int64 `json:"newParent" binding:"Required"`
|
NewParent int64 `json:"newParent"`
|
||||||
// the position of this group in its new parent
|
// the position of this group in its new parent
|
||||||
NewPos *int `json:"newPos,omitempty"`
|
NewPos *int `json:"newPos,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user