Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (638 Bytes)
Patch #16375
ยป patch.txt
Vincent Robert
, 2014-03-18 10:57
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 363653c..d9169d0 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -348,6 +348,11 @@ module ApplicationHelper
else
tag_options[:selected] = nil
end
+ if options[:disabled].respond_to?(:include?) && options[:disabled].include?(project)
+ tag_options[:disabled] = 'disabled'
+ else
+ tag_options[:disabled] = nil
+ end
tag_options.merge!(yield(project)) if block_given?
s << content_tag('option', name_prefix + h(project), tag_options)
end
(1-1/1)
Loading...