Lines Matching refs:bug
113 bug := new(Bug)
114 if err := datastore.Get(c, keys[0].Parent(), bug); err != nil {
117 bugLevel := bug.sanitizeAccess(accessLevel(c, r))
133 bug := new(Bug)
134 if err := datastore.Get(c, keys[0].Parent(), bug); err != nil {
137 bugLevel := bug.sanitizeAccess(accessLevel(c, r))
141 func (bug *Bug) sanitizeAccess(currentLevel AccessLevel) AccessLevel {
142 for ri := len(bug.Reporting) - 1; ri >= 0; ri-- {
143 bugReporting := &bug.Reporting[ri]
145 ns := config.Namespaces[bug.Namespace]
148 if bug.Status == BugStatusFixed || len(bug.Commits) != 0 {
154 sanitizeReporting(bug)
164 func sanitizeReporting(bug *Bug) {
165 bug.DupOf = ""
166 for ri := range bug.Reporting {
167 bugReporting := &bug.Reporting[ri]