From 3ff37133f6247960cc2b1f9b1b87216702113907 Mon Sep 17 00:00:00 2001 From: "bugzilla%glob.com.au" Date: Fri, 18 Feb 2005 16:38:42 +0000 Subject: [PATCH] Bug 282510: Argument "" isn't numeric when modifying group Patch by Byron Jones r,a=justdave git-svn-id: svn://10.0.0.236/trunk@169393 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/editgroups.cgi | 5 +++-- .../bugzilla/template/en/default/admin/groups/edit.html.tmpl | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/editgroups.cgi b/mozilla/webtools/bugzilla/editgroups.cgi index 02f24b1e4dd..f7362cb5fa2 100755 --- a/mozilla/webtools/bugzilla/editgroups.cgi +++ b/mozilla/webtools/bugzilla/editgroups.cgi @@ -599,7 +599,7 @@ sub doGroupChanges { $b =~ /^oldgrp-(\d+)$/; my $v = $1; my $grp = $cgi->param("grp-$v") || 0; - if (($cgi->param("oldgrp-$v") != $grp) && ($v != $gid)) { + if (($v != $gid) && ($cgi->param("oldgrp-$v") != $grp)) { $chgs = 1; if ($grp != 0) { SendSQL("INSERT INTO group_group_map @@ -613,7 +613,8 @@ sub doGroupChanges { } my $bless = $cgi->param("bless-$v") || 0; - if ($cgi->param("oldbless-$v") != $bless) { + my $oldbless = $cgi->param("oldbless-$v"); + if ((defined $oldbless) and ($oldbless != $bless)) { $chgs = 1; if ($bless != 0) { SendSQL("INSERT INTO group_group_map diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/groups/edit.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/groups/edit.html.tmpl index 92b8e9c2ee4..610d3102ef0 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/groups/edit.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/groups/edit.html.tmpl @@ -154,9 +154,10 @@ [% ELSE %] + - + [% END %]