Closed Bug 267560 Opened 20 years ago Closed 20 years ago

CheckCanChangeField in process_bug.cgi requests the bug owner, QA contact and reporter too many times

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(2 files)

This function should request only once per bug, not for every field (assuming we
come here, which requires that the user hasn't editbugs privs and that the field
is modified).

The speed gain shouldn't be too high.

The code is:

if ($lastbugid != $bugid)

but $lastbugid is never updated!
Assignee: myk → LpSolit
I think this is the only thing to do. Or is there something I missed?
Comment on attachment 164486 [details] [diff] [review]
add $lastbugid = $bugid;

I will try it on my installation, but this should be ok!
Attachment #164486 - Flags: review?(justdave)
And this infects 2.16 as well.  yay.  Good catch.
Flags: blocking2.20+
Flags: blocking2.18+
Flags: blocking2.16.8+
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.16
Status: NEW → ASSIGNED
(In reply to comment #2)
> (From update of attachment 164486 [details] [diff] [review])
> I will try it on my installation, but this should be ok!
> 

OK, I didn't see any problem on my installation...
Attachment #164486 - Flags: review?(justdave) → review+
This patch doesn't apply cleanly against the 2.16 branch, however.
Flags: approval?
Flags: approval2.18?
Attachment #166509 - Flags: review?(justdave)
Comment on attachment 166509 [details] [diff] [review]
same patch, for the 2.16 branch

heh, gotta love it when a patch fails to apply because the surrounding
*comments* changed. :)	Ah, for a smarter 'patch' program. :)
Attachment #166509 - Flags: review?(justdave) → review+
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval2.16+
Flags: approval+
Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.125.2.12; previous revision: 1.125.2.11
done

Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.205.2.7; previous revision: 1.205.2.6
done

Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.217; previous revision: 1.216
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: CheckCanChangeField in process_bug.cgi requests the bug owner, qa contact and reporters too many times → CheckCanChangeField in process_bug.cgi requests the bug owner, QA contact and reporter too many times
Blocks: 271023
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: