Commit 0e6a068c7b22b9b074efa5684de9f804d58a5468

Authored by Leandro Santos
1 parent 6a2769a5

should not return a theme twice

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/themes_controller.rb
@@ -13,7 +13,7 @@ class ThemesController < ApplicationController @@ -13,7 +13,7 @@ class ThemesController < ApplicationController
13 13
14 def index 14 def index
15 @environment = environment 15 @environment = environment
16 - @themes = (environment.themes + Theme.approved_themes(target)).sort_by { |t| t.name } 16 + @themes = (environment.themes + Theme.approved_themes(target)).uniq.sort_by { |t| t.name }
17 17
18 @current_theme = target.theme 18 @current_theme = target.theme
19 19