]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4610 relax check
authorStas Vilchik <vilchiks@gmail.com>
Wed, 20 Jan 2016 08:49:23 +0000 (09:49 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 20 Jan 2016 08:49:23 +0000 (09:49 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/settings/_type_LICENSE.html.erb

index b28e4cd0efc62bbcdb039fedf7ef26e540358838..aeaa68efed48cc04e0ca0a298c4fd1fb7ab63caa 100644 (file)
@@ -6,7 +6,7 @@
      product = license.getProduct() || '-'
      # super-hack here
      # should be avoided in the future
-     does_product_match = property.key == "sonar.#{product}.license.secured"
+     does_product_match = property.key.include? product
 %>
   <div class="width100">
     <textarea rows="6" name="<%= name -%>" id="<%= id -%>" style="float: left;width: 390px"><%= h value -%></textarea>