diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index aeacae866..e486274a4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -707,7 +707,15 @@ module ApplicationHelper end end end - + + def select_option_helper option + tmp = Hash.new + tmp={"" => ""} + option.each do |project| + tmp[project.name] = project.identifier + end + tmp + end # Redmine links # # Examples: diff --git a/app/helpers/bids_helper.rb b/app/helpers/bids_helper.rb index bd39d6c28..7d4807330 100644 --- a/app/helpers/bids_helper.rb +++ b/app/helpers/bids_helper.rb @@ -143,12 +143,12 @@ module BidsHelper people.include?(User.current) end - def select_option_helper option - tmp = Hash.new - option.each do |project| - tmp[project.name] = project.identifier - end - tmp - end + # def select_option_helper option + # tmp = Hash.new + # option.each do |project| + # tmp[project.name] = project.identifier + # end + # tmp + # end end \ No newline at end of file diff --git a/app/helpers/contests_helper.rb b/app/helpers/contests_helper.rb index 24df6a752..8206a8ff0 100644 --- a/app/helpers/contests_helper.rb +++ b/app/helpers/contests_helper.rb @@ -157,14 +157,14 @@ module ContestsHelper people.include?(User.current) end - def select_option_helper option - tmp = Hash.new - tmp={"" => ""} - option.each do |project| - tmp[project.name] = project.identifier - end - tmp - end + # def select_option_helper option + # tmp = Hash.new + # tmp={"" => ""} + # option.each do |project| + # tmp[project.name] = project.identifier + # end + # tmp + # end def select_option_app_helper options tmp = Hash.new options.each do |option| diff --git a/app/helpers/softapplications_helper.rb b/app/helpers/softapplications_helper.rb index 67ab93180..8bb5d0d1a 100644 --- a/app/helpers/softapplications_helper.rb +++ b/app/helpers/softapplications_helper.rb @@ -14,13 +14,13 @@ module SoftapplicationsHelper content_tag('div', content, :class => "tabs") end - def select_option_helper option - tmp = Hash.new - option.each do |project| - tmp[project.name] = project.identifier - end - tmp - end + # def select_option_helper option + # tmp = Hash.new + # option.each do |project| + # tmp[project.name] = project.identifier + # end + # tmp + # end end