From: lpsolit%gmail.com <> Date: Mon, 22 Jan 2007 00:04:56 +0000 (+0000) Subject: Bug 367654: Param('upgrade_notification') eq 'development_snapshot' should catch... X-Git-Tag: bugzilla-2.23.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c023b6859219c96960d4efe854fc8988cc22809;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/Update.pm b/Bugzilla/Update.pm index 5d676b4607..2bfd959c92 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;