summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authortimeless%mozdev.org <>2003-05-26 07:26:00 +0200
committertimeless%mozdev.org <>2003-05-26 07:26:00 +0200
commitcae811513ebcca61c83fc18499cc987f58a5fdc1 (patch)
tree36bd8b97eb3ea3ac7476a34554d157a723bab2bf /buglist.cgi
parent12a601d903aa0e9c63184f7ec2f0bb4f0dd04f6b (diff)
downloadbugzilla-cae811513ebcca61c83fc18499cc987f58a5fdc1.tar.gz
bugzilla-cae811513ebcca61c83fc18499cc987f58a5fdc1.tar.xz
Bug 207085 Updating a stored query shouldn't return the same message as creating one
r=kiko
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi10
1 files changed, 7 insertions, 3 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 7a2c894bf..d0469cace 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -329,11 +329,16 @@ elsif ($::FORM{'cmdtype'} eq "doit" && $::FORM{'remember'}) {
}
my $new_in_footer = $tofooter;
+ $vars->{'message'} = "buglist_new_named_query";
# Don't add it to the list if they are reusing an existing query name.
foreach my $query (@{$vars->{'user'}{'queries'}}) {
- if ($query->{'name'} eq $name && $query->{'linkinfooter'} == 1) {
- $new_in_footer = 0;
+ if ($query->{'name'} eq $name) {
+ $vars->{'message'} = "buglist_updated_named_query";
+ if ($query->{'linkinfooter'} == 1) {
+ $new_in_footer = 0;
+ }
+ break;
}
}
@@ -344,7 +349,6 @@ elsif ($::FORM{'cmdtype'} eq "doit" && $::FORM{'remember'}) {
push(@{$vars->{'user'}{'queries'}}, \%query);
}
- $vars->{'message'} = "buglist_new_named_query";
$vars->{'queryname'} = $name;
}
}