summaryrefslogtreecommitdiffstats
path: root/editgroups.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-08-11 23:00:33 +0200
committerbugreport%peshkin.net <>2004-08-11 23:00:33 +0200
commit9e6914114a17d5b1ca92ae4aa1f9796d1ba66df8 (patch)
tree497b3ea948791d229051e4c9ec663ae5fdf8a6b1 /editgroups.cgi
parentd306c2edbbc171d5345b3378bd76ed5b69984316 (diff)
downloadbugzilla-9e6914114a17d5b1ca92ae4aa1f9796d1ba66df8.tar.gz
bugzilla-9e6914114a17d5b1ca92ae4aa1f9796d1ba66df8.tar.xz
Bug 244239: Add group-based pronouns to query
r=erik,justdave a=justdave
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-xeditgroups.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editgroups.cgi b/editgroups.cgi
index 981fec48a..b3b6135e4 100755
--- a/editgroups.cgi
+++ b/editgroups.cgi
@@ -153,7 +153,7 @@ if ($action eq 'changeform') {
" ON C.member_id = groups.id" .
" AND C.grantor_id = $group_id" .
" AND C.grant_type = " . GROUP_VISIBLE .
- " WHERE groups.id != $group_id ORDER by name");
+ " ORDER by name");
while (MoreSQLData()) {
my ($grpid, $grpnam, $grpdesc, $grpmember, $blessmember, $membercansee)
@@ -531,7 +531,7 @@ sub doGroupChanges {
$b =~ /^oldgrp-(\d+)$/;
my $v = $1;
my $grp = $cgi->param("grp-$v") || 0;
- if ($cgi->param("oldgrp-$v") != $grp) {
+ if (($cgi->param("oldgrp-$v") != $grp) && ($v != $gid)) {
$chgs = 1;
if ($grp != 0) {
SendSQL("INSERT INTO group_group_map