summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-01-22 01:04:56 +0100
committerlpsolit%gmail.com <>2007-01-22 01:04:56 +0100
commit7c023b6859219c96960d4efe854fc8988cc22809 (patch)
tree7417f475241801f63fc2db57e52adf92287f9dd6
parente7030bab0806220d6644073a5d91ec4620131f21 (diff)
downloadbugzilla-7c023b6859219c96960d4efe854fc8988cc22809.tar.gz
bugzilla-7c023b6859219c96960d4efe854fc8988cc22809.tar.xz
Bug 367654: Param('upgrade_notification') eq 'development_snapshot' should catch release candidates too if no development snapshot is available - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
-rw-r--r--Bugzilla/Update.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Update.pm b/Bugzilla/Update.pm
index 5d676b460..2bfd959c9 100644
--- a/Bugzilla/Update.pm
+++ b/Bugzilla/Update.pm
@@ -81,6 +81,11 @@ sub get_notifications {
my @release;
if (Bugzilla->params->{'upgrade_notification'} eq 'development_snapshot') {
@release = grep {$_->{'status'} eq 'development'} @releases;
+ # If there is no development snapshot available, then we are in the
+ # process of releasing a release candidate. That's the release we want.
+ unless (scalar(@release)) {
+ @release = grep {$_->{'status'} eq 'release-candidate'} @releases;
+ }
}
elsif (Bugzilla->params->{'upgrade_notification'} eq 'latest_stable_release') {
@release = grep {$_->{'status'} eq 'stable'} @releases;