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

This commit is contained in:
lpsolit%gmail.com 2007-01-21 16:04:56 +00:00
Родитель 2ddce0e3a4
Коммит 5c58e0d9f2
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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;