зеркало из https://github.com/mozilla/pjs.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 <LpSolit@gmail.com> r/a=mkanat
This commit is contained in:
Родитель
2ddce0e3a4
Коммит
5c58e0d9f2
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче