diff options
author | lpsolit%gmail.com <> | 2007-01-22 01:04:56 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-01-22 01:04:56 +0100 |
commit | 7c023b6859219c96960d4efe854fc8988cc22809 (patch) | |
tree | 7417f475241801f63fc2db57e52adf92287f9dd6 /Bugzilla | |
parent | e7030bab0806220d6644073a5d91ec4620131f21 (diff) | |
download | bugzilla-7c023b6859219c96960d4efe854fc8988cc22809.tar.gz bugzilla-7c023b6859219c96960d4efe854fc8988cc22809.tar.xz |
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
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Update.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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; |