]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Email settings console
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 5 Jun 2015 10:13:31 +0000 (12:13 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 5 Jun 2015 10:13:31 +0000 (12:13 +0200)
Ruby code was not updated when merging email-notifications-plugin into core

server/sonar-web/src/main/webapp/WEB-INF/app/controllers/email_configuration_controller.rb

index 6f1f4ef36d6e110506f0a06b9bf61d543412c326..f54099b575ad0531fc11f9429a5cf4a30bb4600e 100644 (file)
@@ -55,7 +55,7 @@ class EmailConfigurationController < ApplicationController
     flash[:error] = message('email_configuration.test.to_address_required')
   else
     begin
-    java_facade.getComponentByClassname('emailnotifications', 'org.sonar.plugins.emailnotifications.EmailNotificationChannel').sendTestEmail(to_address, subject, message)
+    java_facade.getCoreComponentByClassname('org.sonar.server.notifications.email.EmailNotificationChannel').sendTestEmail(to_address, subject, message)
     flash[:notice] = message('email_configuration.test.email_was_sent_to_x', :params => [to_address])
     rescue Exception => e
     flash[:error] = e.message
@@ -67,7 +67,7 @@ class EmailConfigurationController < ApplicationController
   private
 
   def configuration
-  java_facade.getComponentByClassname('emailnotifications', 'org.sonar.api.config.EmailSettings').class
+    java_facade.getCoreComponentByClassname('org.sonar.api.config.EmailSettings').class
   end
 
   def properties