Move ids in XML views.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3331 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3eb815fddd
commit
002f440bcd
|
@ -1,7 +1,8 @@
|
||||||
xml.instruct!
|
xml.instruct!
|
||||||
xml.issues :type => 'array', :count => @issue_count do
|
xml.issues :type => 'array', :count => @issue_count do
|
||||||
@issues.each do |issue|
|
@issues.each do |issue|
|
||||||
xml.issue :id => issue.id do
|
xml.issue do
|
||||||
|
xml.id issue.id
|
||||||
xml.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil?
|
xml.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil?
|
||||||
xml.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil?
|
xml.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil?
|
||||||
xml.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil?
|
xml.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil?
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
xml.instruct!
|
xml.instruct!
|
||||||
xml.issue :id => @issue.id do
|
xml.issue do
|
||||||
|
xml.id @issue.id
|
||||||
xml.project(:id => @issue.project_id, :name => @issue.project.name) unless @issue.project.nil?
|
xml.project(:id => @issue.project_id, :name => @issue.project.name) unless @issue.project.nil?
|
||||||
xml.tracker(:id => @issue.tracker_id, :name => @issue.tracker.name) unless @issue.tracker.nil?
|
xml.tracker(:id => @issue.tracker_id, :name => @issue.tracker.name) unless @issue.tracker.nil?
|
||||||
xml.status(:id => @issue.status_id, :name => @issue.status.name) unless @issue.status.nil?
|
xml.status(:id => @issue.status_id, :name => @issue.status.name) unless @issue.status.nil?
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
xml.instruct!
|
xml.instruct!
|
||||||
xml.projects :type => 'array' do
|
xml.projects :type => 'array' do
|
||||||
@projects.each do |project|
|
@projects.each do |project|
|
||||||
xml.project :id => project.id do
|
xml.project do
|
||||||
|
xml.id project.id
|
||||||
xml.name project.name
|
xml.name project.name
|
||||||
xml.identifier project.identifier
|
xml.identifier project.identifier
|
||||||
xml.description project.description
|
xml.description project.description
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
xml.instruct!
|
xml.instruct!
|
||||||
xml.project :id => @project.id do
|
xml.project do
|
||||||
|
xml.id @project.id
|
||||||
xml.name @project.name
|
xml.name @project.name
|
||||||
xml.identifier @project.identifier
|
xml.identifier @project.identifier
|
||||||
xml.description @project.description
|
xml.description @project.description
|
||||||
|
|
Loading…
Reference in New Issue