]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 367654: Param('upgrade_notification') eq 'development_snapshot' should catch...
authorlpsolit%gmail.com <>
Mon, 22 Jan 2007 00:04:56 +0000 (00:04 +0000)
committerlpsolit%gmail.com <>
Mon, 22 Jan 2007 00:04:56 +0000 (00:04 +0000)
Bugzilla/Update.pm

index 5d676b4607ae10e4452e46d9d5f6cd01433da0cb..2bfd959c92edc3f1ee075bc1f3a6c6a453e45287 100644 (file)
@@ -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;