diff options
author | lpsolit%gmail.com <> | 2007-01-22 00:04:56 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-01-22 00:04:56 +0000 |
commit | 7c023b6859219c96960d4efe854fc8988cc22809 (patch) | |
tree | 7417f475241801f63fc2db57e52adf92287f9dd6 | |
parent | Bug 367649: Deleting an attachment should set isobsolete to 1 (diff) | |
download | bugzilla-7c023b6859219c96960d4efe854fc8988cc22809.tar.gz bugzilla-7c023b6859219c96960d4efe854fc8988cc22809.tar.bz2 bugzilla-7c023b6859219c96960d4efe854fc8988cc22809.zip |
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
-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; |