From ab32fe3e48435896a8ae762174744ccef704c133 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 12 Jul 2012 18:41:59 +0200 Subject: [PATCH] Always display tabs in the bulk edition console, even if they're empty --- .../WEB-INF/app/controllers/bulk_deletion_controller.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/bulk_deletion_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/bulk_deletion_controller.rb index ad3869792e7..1d8c239389c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/bulk_deletion_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/bulk_deletion_controller.rb @@ -33,13 +33,7 @@ class BulkDeletionController < ApplicationController @deletion_manager = deletion_manager render :template => 'bulk_deletion/pending_deletions' else - # the "Projects" tab is always displayed - @tabs = ['TRK'] - Java::OrgSonarServerUi::JRubyFacade.getInstance().getQualifiersWithProperty('deletable').each do |qualifier| - if qualifier!='TRK' && Project.count(:all, :conditions => {:qualifier => qualifier}) > 0 - @tabs << qualifier - end - end + @tabs = Java::OrgSonarServerUi::JRubyFacade.getInstance().getQualifiersWithProperty('deletable') @selected_tab = params[:resource_type] @selected_tab = 'TRK' unless @tabs.include?(@selected_tab) -- 2.39.5