Patch #16375 ยป patch.txt
1 |
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb |
---|---|
2 |
index 363653c..d9169d0 100644 |
3 |
--- a/app/helpers/application_helper.rb |
4 |
+++ b/app/helpers/application_helper.rb |
5 |
@@ -348,6 +348,11 @@ module ApplicationHelper |
6 |
else |
7 |
tag_options[:selected] = nil |
8 |
end |
9 |
+ if options[:disabled].respond_to?(:include?) && options[:disabled].include?(project) |
10 |
+ tag_options[:disabled] = 'disabled' |
11 |
+ else |
12 |
+ tag_options[:disabled] = nil |
13 |
+ end |
14 |
tag_options.merge!(yield(project)) if block_given? |
15 |
s << content_tag('option', name_prefix + h(project), tag_options) |
16 |
end |