From 7c023b6859219c96960d4efe854fc8988cc22809 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 22 Jan 2007 00:04:56 +0000 Subject: 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 r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Update.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/Update.pm') 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; -- cgit v1.2.3-24-g4f1b