Commit 7c023b68 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 367654: Param('upgrade_notification') eq 'development_snapshot' should catch…

Bug 367654: Param('upgrade_notification') eq 'development_snapshot' should catch release candidates too if no development snapshot is available - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent e7030bab
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment