File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ func (Board) TableName() string {
61
61
// NumIssues return counter of all issues assigned to the board
62
62
func (b * Board ) NumIssues () int {
63
63
c , err := db .GetEngine (db .DefaultContext ).Table ("project_issue" ).
64
- Where ("project_board_id=?" , b .ID ).
64
+ Where ("project_id=?" , b .ProjectID ).
65
+ And ("project_board_id=?" , b .ID ).
65
66
GroupBy ("issue_id" ).
66
67
Cols ("issue_id" ).
67
68
Count ()
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ const (
39
39
TypeOrganization
40
40
)
41
41
42
- // __________ __ __
43
- // \______ \_______ ____ |__| ____ _____/ |_ ______
44
- // | ___/\_ __ \/ _ \ | |/ __ \_/ ___\ __\/ ___/
45
- // | | | | \( <_> ) | \ ___/\ \___| | \___ \
46
- // |____| |__| \____/\__| |\___ >\___ >__| /____ >
47
- // \______| \/ \/ \/
48
-
49
42
// ErrProjectNotExist represents a "ProjectNotExist" kind of error.
50
43
type ErrProjectNotExist struct {
51
44
ID int64
You can’t perform that action at this time.
0 commit comments