ref: refs/heads/dmacvicar_log_viewer
commit d77d05ae1e9d37f472ba7adbb105511f6a7f9d63
Author: Stefan Schubert
Date: Mon Sep 7 12:25:31 2009 +0200
evaluate the correct amount of patches
---
.../app/controllers/patch_updates_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/patch_updates/app/controllers/patch_updates_controller.rb b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
index ce42430..4747342 100644
--- a/plugins/patch_updates/app/controllers/patch_updates_controller.rb
+++ b/plugins/patch_updates/app/controllers/patch_updates_controller.rb
@@ -29,7 +29,7 @@ class PatchUpdatesController < ApplicationController
patches_summary = { :security => 0, :important => 0, :optional => 0}
[:security, :important, :optional].each do |patch_type|
- patches_summary[patch_type] = patch_updates.collect { |p| p.kind == patch_type.to_s }.size
+ patches_summary[patch_type] = patch_updates.collect { |p| p.kind == patch_type.to_s ? p : nil }.nitems
end
else
erase_redirect_results #reset all redirects
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org