Merged r11331 and r11333 from trunk (#13075).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.2-stable@11363 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
42cc2d322a
commit
0951522247
|
@ -111,7 +111,7 @@
|
||||||
<li><%= bulk_update_custom_field_context_menu_link(field, text, value || text) %></li>
|
<li><%= bulk_update_custom_field_context_menu_link(field, text, value || text) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% unless field.is_required? %>
|
<% unless field.is_required? %>
|
||||||
<li><%= bulk_update_custom_field_context_menu_link(field, l(:label_none), '') %></li>
|
<li><%= bulk_update_custom_field_context_menu_link(field, l(:label_none), '__none__') %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -132,7 +132,7 @@ class ContextMenusControllerTest < ActionController::TestCase
|
||||||
:attributes => {:href => "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=Foo"}
|
:attributes => {:href => "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=Foo"}
|
||||||
assert_tag 'a',
|
assert_tag 'a',
|
||||||
:content => 'none',
|
:content => 'none',
|
||||||
:attributes => {:href => "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D="}
|
:attributes => {:href => "/issues/bulk_update?ids%5B%5D=1&issue%5Bcustom_field_values%5D%5B#{field.id}%5D=__none__"}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_context_menu_should_not_include_null_value_for_required_custom_fields
|
def test_context_menu_should_not_include_null_value_for_required_custom_fields
|
||||||
|
|
Loading…
Reference in New Issue