From: Simon Brandhof Date: Thu, 12 Jul 2012 16:41:59 +0000 (+0200) Subject: Always display tabs in the bulk edition console, even if they're empty X-Git-Tag: 3.2~97 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab32fe3e48435896a8ae762174744ccef704c133;p=sonarqube.git Always display tabs in the bulk edition console, even if they're empty --- 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)