]> source.dussan.org Git - sonarqube.git/commitdiff
Fix issue when displaying issue dropdown menu
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 18 Jul 2013 09:47:46 +0000 (11:47 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 18 Jul 2013 09:47:46 +0000 (11:47 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb

index 5b7cd5ff905618af0bc54ccd901f5e78886b3e51..4c276319a75b6a31dd2e371b266713a7c5cec6cf 100644 (file)
          plugin_actions = Internal.issues.listActions(issue)
          shouldDisplayDropDown = transitions.size > 1 || !issue.resolution || !plugin_actions.empty?
          if shouldDisplayDropDown
-           transitions.remove(0)
+           transitions.remove(0) if transitions.size > 1
       %>
         <div class="dropdown">
           <a href="#" class="link-action link-more" onclick="showDropdownMenuOnElement($j(this).next('.dropdown-menu')); return false;"><%= message('more_actions') -%></a>