]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5546 do not display "true" when change login is set !
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 29 Aug 2014 14:32:39 +0000 (16:32 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 29 Aug 2014 14:32:39 +0000 (16:32 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/changelog.html.erb

index 0cdc4add2219b7c4c68c12ea1b0b7c0c60af6e61..e1adef9536b61db7e08b6e33beb2db4090e2c3ba 100644 (file)
           <%
              action = change.action()
              action_message = message('quality_profiles.changelog.' + action.downcase) if action
-             author = change.authorName() ? change.authorName() : change.login() ? !change.login().empty? : 'System'
+
+             if change.authorName() && !change.authorName().empty()
+               author = change.authorName()
+             elsif change.login() && !change.login().empty()
+               author = change.login()
+             else
+               author = 'System'
+             end
              rule = change.ruleName() ? change.ruleName() : change.ruleKey()
           %>
           <td valign="top" width="1%" nowrap><%= Internal.i18n.formatDateTime(change.time()) -%></td>