aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-21 14:49:34 +0200
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-21 15:40:46 +0200
commita6ffc4cd13d81de42aca57ee5f40563aa359ebab (patch)
treee520f55ee93d7d345551e49171fc4191e555c458
parent0cc861c29262766d50ecc6683510eacd67f64225 (diff)
downloadsonarqube-a6ffc4cd13d81de42aca57ee5f40563aa359ebab.tar.gz
sonarqube-a6ffc4cd13d81de42aca57ee5f40563aa359ebab.zip
SONAR-3597 Save last user who edited a manual measure
=> On manual measures, "Last change by" field is never updated
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/manual_measures_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/manual_measures_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/manual_measures_controller.rb
index 56344f3de57..23494db4166 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/manual_measures_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/manual_measures_controller.rb
@@ -46,6 +46,7 @@ class ManualMeasuresController < ApplicationController
end
@measure.typed_value=params[:val]
@measure.description=params[:desc]
+ @measure.user_login=current_user.login
if @measure.valid?
@measure.save
if (params[:redirect_to_new]=='true')