summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormyk%mozilla.org <>2004-09-11 08:38:45 +0200
committermyk%mozilla.org <>2004-09-11 08:38:45 +0200
commitbe9e174d8eeb6832bdc963950a7e898256cb86d8 (patch)
treeb57382aae33e1f6c27ee1ee6887110243de4b07e
parente1d5666e661d8bd0952375d1b5ea89767aff3756 (diff)
downloadbugzilla-be9e174d8eeb6832bdc963950a7e898256cb86d8.tar.gz
bugzilla-be9e174d8eeb6832bdc963950a7e898256cb86d8.tar.xz
Fix for bug 215319: changes "flag requester" field in boolean charts to "flag requestee" field, which is what it should have been ("flag requester" can be queried via the "flag setter" field)
r=justdave
-rw-r--r--Bugzilla/Search.pm8
-rwxr-xr-xchecksetup.pl5
2 files changed, 8 insertions, 5 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 23bb34eae..86efb2ad0 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -728,12 +728,12 @@ sub init {
$term = "0=0";
}
},
- "^requesters.login_name," => sub {
+ "^requestees.login_name," => sub {
push(@supptables, "flags flags_$chartid");
push(@wherepart, "bugs.bug_id = flags_$chartid.bug_id");
- push(@supptables, "profiles requesters_$chartid");
- push(@wherepart, "flags_$chartid.requester_id = requesters_$chartid.userid");
- $f = "requesters_$chartid.login_name";
+ push(@supptables, "profiles requestees_$chartid");
+ push(@wherepart, "flags_$chartid.requestee_id = requestees_$chartid.userid");
+ $f = "requestees_$chartid.login_name";
},
"^setters.login_name," => sub {
push(@supptables, "flags flags_$chartid");
diff --git a/checksetup.pl b/checksetup.pl
index 0d1ca477a..68dd308e6 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -2204,8 +2204,11 @@ AddFDef("remaining_time", "Remaining Hours", 0);
# Oops. Bug 163299
$dbh->do("DELETE FROM fielddefs WHERE name='cc_accessible'");
+# Oops. Bug 215319
+$dbh->do("DELETE FROM fielddefs WHERE name='requesters.login_name'");
+
AddFDef("flagtypes.name", "Flag", 0);
-AddFDef("requesters.login_name", "Flag Requester", 0);
+AddFDef("requestees.login_name", "Flag Requestee", 0);
AddFDef("setters.login_name", "Flag Setter", 0);
AddFDef("work_time", "Hours Worked", 0);
AddFDef("percentage_complete", "Percentage Complete", 0);