diff options
Diffstat (limited to 'app/helpers/wiki_helper.rb')
-rw-r--r-- | app/helpers/wiki_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb index f640ee48d..bf3164440 100644 --- a/app/helpers/wiki_helper.rb +++ b/app/helpers/wiki_helper.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang @@ -22,10 +22,10 @@ module WikiHelper def wiki_page_options_for_select(pages, selected = nil, parent = nil, level = 0) pages = pages.group_by(&:parent) unless pages.is_a?(Hash) - s = ''.html_safe + s = (+'').html_safe if pages.has_key?(parent) pages[parent].each do |page| - attrs = "value='#{page.id}'" + attrs = +"value='#{page.id}'" attrs << " selected='selected'" if selected == page indent = (level > 0) ? (' ' * level * 2 + '» ') : '' |