Skip to content

Commit

Permalink
fix: Missing attribute forAll in CustomField
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/sven/rmc_backup/svn_neu/trunk@396 738a3cfe-f54d-0410-852a-ebac1faf349d
  • Loading branch information
sven-k committed Mar 7, 2010
1 parent ebec80e commit 2ede820
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/views/mylyn_connector/custom_fields/all.rxml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ xml.customFields :xmlns => 'http://redmin-mylyncon.sf.net/schemas/WS-API-2.6' do
xml.defaultValue field.default_value
xml.required field.is_required
xml.filter field.is_filter
xml.forAll field.is_for_all
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ xml.issueCustomField(:id => issue_custom_field.id) do
xml.defaultValue issue_custom_field.default_value
xml.required issue_custom_field.is_required
xml.filter issue_custom_field.is_filter
xml.forAll issue_custom_field.is_for_all
xml.trackers integer_list(issue_custom_field.trackers)
end
2 changes: 1 addition & 1 deletion lib/mylyn_connector/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module MylynConnector
module Version
MAJOR = 2
MINOR = 6
TINY = 2
TINY = 3

# stable/trunk
BRANCH = 'trunk'
Expand Down
7 changes: 7 additions & 0 deletions release-note.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Version 2.6.3
bugfix: Missing CustomField-Attribute forAll

Version 2.6.2
bugfix: IssueCustomFields without assigned Tracker(s)
bugfix: Changes for Redmine 0.9

Version 2.6.1
bugfix: Compatibility with Redmine 0.8.7

Expand Down
2 changes: 1 addition & 1 deletion test/functional/projects_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_all
assert_tag :tag => 'issuecategory', :attributes => {:id => 2}, :children => {:only => {:tag => 'name', :content => 'Recipes'}}, :parent => {:tag => 'issuecategories', :children => {:count => 2}, :parent => p}
#redmine 0.8: 2 customfields
#redmine 0.9: 3 customfields
assert_tag :tag => 'issuecustomfield', :attributes => {:id => 1}, :children => {:only => {:tag => 'name', :content => 'Database', :sibling => {:tag => 'fieldformat', :content => 'list', :sibling => {:tag => 'trackers', :content => '1', :sibling => {:tag => 'required', :content => 'false'}, :sibling => {:tag => 'filter', :content => 'true'}}}}}, :parent => {:tag => 'issuecustomfields', :children => {:count => 2..3}, :parent =>p}
assert_tag :tag => 'issuecustomfield', :attributes => {:id => 1}, :children => {:only => {:tag => 'name', :content => 'Database', :sibling => {:tag => 'fieldformat', :content => 'list', :sibling => {:tag => 'trackers', :content => '1', :sibling => {:tag => 'required', :content => 'false', :sibling => {:tag => 'filter', :content => 'true', :sibling => {:tag => 'forAll', :content => 'true'}}}}}}}, :parent => {:tag => 'issuecustomfields', :children => {:count => 2..3}, :parent =>p}
#redmine 0.8: 2 queries
#redmine 0.9: 5 queries
assert_tag :tag => 'query', :attributes => {:id => 1}, :children => {:only => {:tag => 'name', :content => 'Multiple custom fields query'}}, :parent => {:tag => 'queries', :children => {:count => 2..5}, :parent => p}
Expand Down
3 changes: 3 additions & 0 deletions test/schema/types/customField.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
<xsd:element name="defaultValue" type="xsd:string" />
<xsd:element name="required" type="xsd:boolean" />
<xsd:element name="filter" type="xsd:boolean" />
<!-- TODO in required 2.7 -->
<xsd:element name="forAll" type="xsd:boolean" minOccurs="1" />

</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
Expand Down

0 comments on commit 2ede820

Please sign in to comment.