aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-10-31 12:04:01 +0100
committerDavid Gageot <david@gageot.net>2012-10-31 12:04:01 +0100
commit9eae08814e457dcc6049090202811201c4781946 (patch)
treec7de8d0555788e0bc72b0cb1c54e32cfca3e1f06
parente82f99936d3c5dc94b34b8ddbfe0578a46236497 (diff)
downloadsonarqube-9eae08814e457dcc6049090202811201c4781946.tar.gz
sonarqube-9eae08814e457dcc6049090202811201c4781946.zip
SONAR-3883 Reuse auto-generated keys in property sets
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb
index 6a342960453..84a619fb413 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb
@@ -62,7 +62,7 @@ class SettingsController < ApplicationController
def update_property_set(key, set_keys, fields_hash, resource_id, auto_generate)
if auto_generate
- max = set_keys.max_by(&:to_i).to_i
+ max = (Time.now.to_f * 100000).to_i
set_keys.each_with_index do |v, index|
if v.blank?
max += 1;